Bug 143244 - error processing raw files
Summary: error processing raw files
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-RAW (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-20 00:06 UTC by Carlos
Modified: 2019-12-23 17:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos 2007-03-20 00:06:18 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    Debian testing/unstable Packages
OS:                Linux

When opening raw files from the camera, digikam runs the following command:

dcraw -c -2 -w -a -q 0 <image_file>

The -2 parameter is not in use in current version of dcraw, so it exits with a return
code of 1, showing the following output:

Unknown option "-2".

As a result, the image is displayed as a black screen in digikam.

I am using current dcraw version in Debian unstable, version 8.39-1

Here is the code from dcraw that deals with input parameters:

  for (arg=1; argv[arg][0] == '-'; ) {
    opt = argv[arg++][1];
    if ((cp = strchr (sp="nbrktqsH", opt)))
      for (i=0; i < "11411111"[cp-sp]-'0'; i++)
	if (!isdigit(argv[arg+i][0])) {
	  fprintf (stderr,_("Non-numeric argument to \"-%c\"\n"), opt);
	  return 1;
	}
    switch (opt) {
      case 'n':  threshold   = atof(argv[arg++]);  break;
      case 'b':  bright      = atof(argv[arg++]);  break;
      case 'r':
	   FORC4 user_mul[c] = atof(argv[arg++]);  break;
      case 'k':  user_black  = atoi(argv[arg++]);  break;
      case 't':  user_flip   = atoi(argv[arg++]);  break;
      case 'q':  user_qual   = atoi(argv[arg++]);  break;
      case 's':  shot_select = atoi(argv[arg++]);  break;
      case 'H':  highlight   = atoi(argv[arg++]);  break;
      case 'o':
	if (isdigit(argv[arg][0]) && !argv[arg][1])
	  output_color = atoi(argv[arg++]);
#ifndef NO_LCMS
	else     out_profile = argv[arg++];
	break;
      case 'p':  cam_profile = argv[arg++];
#endif
	break;
      case 'K':  dark_frame  = argv[arg++];
	break;
      case 'z':  timestamp_only    = 1;  break;
      case 'e':  thumbnail_only    = 1;  break;
      case 'i':  identify_only     = 1;  break;
      case 'c':  write_to_stdout   = 1;  break;
      case 'v':  verbose           = 1;  break;
      case 'h':  half_size         = 1;		/* "-h" implies "-f" */
      case 'f':  four_color_rgb    = 1;  break;
      case 'a':  use_auto_wb       = 1;  break;
      case 'w':  use_camera_wb     = 1;  break;
      case 'D':
      case 'd':  document_mode = 1 + (opt == 'D');
      case 'j':  use_fuji_rotate   = 0;  break;
      case 'm':  output_color      = 0;  break;
      case 'T':  output_tiff       = 1;  break;
      case '4':  output_bps       = 16;  break;
      default:
	fprintf (stderr,_("Unknown option \"-%c\".\n"), opt);
	return 1;
    }

This is from current version of dcraw, 8.68

Please, check the use of this parameter in dcraw invocation.

Thank you
Comment 1 caulier.gilles 2007-03-20 07:59:20 UTC
Carlos,

You use an old digiKam release. This problem have been already fixed. Please update to last stable 0.9.1

Gilles Caulier
Comment 2 caulier.gilles 2019-12-23 17:35:56 UTC
Not reproducible with digiKam 7.0.0-beta1.