Kodak DCR RAW format - "supported", but actually, no!

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
deus_ex_mamiya

Kodak DCR RAW format - "supported", but actually, no!

Post by deus_ex_mamiya »

Hi,

The Imagemagick “Formats” webpage says that this format is supported (for reading):
DCR R Kodak Digital Camera Raw Image File

However, the ‘convert’ & ‘display’ commands both spew out error messages, and fail to operate, when I feed them any Kodak .DCR file from my Kodak Proback 645M.
It seems that DCR is not actually supported, at least under my version: I am using ImageMagick-6.4.0, on Suse 11.

Could you please try to fix this? I can supply .dcr files for testing, if this would help.

Thanks,
Ray
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: Kodak DCR RAW format - "supported", but actually, no!

Post by el_supremo »

What are the error messages?

ImageMagick uses the dcraw program as a "delegate" to read images from several types of digital camera, Kodak being one of them.
I suspect that for some reason dcraw isn't on your system.

Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
deus_ex_mamiya

Re: Kodak DCR RAW format - "supported", but actually, no!

Post by deus_ex_mamiya »

Error messages:

ray@baade:~> convert 47fb2685.dcr test_dcr.tif

convert: incorrect count for field "MinSampleValue" (1, expecting 3); tag ignored. `47fb2685.dcr'.
convert: 47fb2685.dcr: unknown field with tag 33405 (0x827d) encountered. `TIFFReadDirectory'.
convert: 47fb2685.dcr: unknown field with tag 33423 (0x828f) encountered. `TIFFReadDirectory'.
convert: 47fb2685.dcr: unknown field with tag 33424 (0x8290) encountered. `TIFFReadDirectory'.
convert: 47fb2685.dcr: unknown field with tag 33434 (0x829a) encountered. `TIFFReadDirectory'.
convert: 47fb2685.dcr: unknown field with tag 33437 (0x829d) encountered. `TIFFReadDirectory'.
convert: 47fb2685.dcr: unknown field with tag 34850 (0x8822) encountered. `TIFFReadDirectory'.
convert: 47fb2685.dcr: unknown field with tag 34859 (0x882b) encountered. `TIFFReadDirectory'.
convert: 47fb2685.dcr: unknown field with tag 36867 (0x9003) encountered. `TIFFReadDirectory'.
convert: 47fb2685.dcr: unknown field with tag 37380 (0x9204) encountered. `TIFFReadDirectory'.
convert: 47fb2685.dcr: unknown field with tag 37381 (0x9205) encountered. `TIFFReadDirectory'.
convert: 47fb2685.dcr: unknown field with tag 37383 (0x9207) encountered. `TIFFReadDirectory'.
convert: 47fb2685.dcr: unknown field with tag 37384 (0x9208) encountered. `TIFFReadDirectory'.
convert: 47fb2685.dcr: unknown field with tag 37386 (0x920a) encountered. `TIFFReadDirectory'.
convert: 47fb2685.dcr: unknown field with tag 37393 (0x9211) encountered. `TIFFReadDirectory'.
convert: 47fb2685.dcr: unknown field with tag 37397 (0x9215) encountered. `TIFFReadDirectory'.
convert: 47fb2685.dcr: unknown field with tag 37398 (0x9216) encountered. `TIFFReadDirectory'.
convert: 47fb2685.dcr: unknown field with tag 37399 (0x9217) encountered. `TIFFReadDirectory'.
convert: Bad value 9 for "Orientation" tag ignored. `47fb2685.dcr'.
convert: incorrect count for field "RichTIFFIPTC" (0, expecting 1); tag ignored. `47fb2685.dcr'.
convert: Tag 37381: Rational with zero denominator (num = 0). `47fb2685.dcr'.
convert: Tag 37386: Rational with zero denominator (num = 0). `47fb2685.dcr'.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Kodak DCR RAW format - "supported", but actually, no!

Post by magick »

Try this command:
  • convert dcr:47fb2685.dcr test_dcr.tif
DCR images masquerade as TIFF.
deus_ex_mamiya

Re: Kodak DCR RAW format - "supported", but actually, no!

Post by deus_ex_mamiya »

....and dcraw seems to be fine on my system:

ray@baade:~> whereis dcraw
dcraw: /usr/bin/dcraw /usr/bin/X11/dcraw /usr/share/man/man1/dcraw.1.gz

ray@baade:~> which dcraw
/usr/bin/dcraw

ray@baade:~> /usr/bin/dcraw
Raw photo decoder "dcraw" v8.85
by Dave Coffin, dcoffin a cybercom o net
deus_ex_mamiya

Re: Kodak DCR RAW format - "supported", but actually, no!

Post by deus_ex_mamiya »

Thanks, magic! Prefixing the DCR file with dcr:47fb2685.dcr worked!

Case closed...thanks for the help.
Post Reply