Page 1 of 1

cr2-raw format not properly detected

Posted: 2008-10-05T15:09:22-07:00
by _maekke_
Hello,

when trying to convert/identify cr2-raw files from my canon camera, it fails do detect them correctly.

Code: Select all

$ convert img_9812.cr2 test.jpg
convert: incorrect count for field "BitsPerSample" (3, expecting 1); tag trimmed. `img_9812.cr2'.
convert: img_9812.cr2: unknown field with tag 40961 (0xa001) encountered. `TIFFReadCustomDirectory'.
convert: img_9812.cr2: unknown field with tag 40965 (0xa005) encountered. `TIFFReadCustomDirectory'.
convert: incorrect count for field "BitsPerSample" (3, expecting 1); tag trimmed. `img_9812.cr2'.
convert: compression not supported `img_9812.cr2'.
convert: missing an image filename `test.jpg'.
this happens with imagemagick-6.4.4-1 (and certainly 6.4.3-5, too).
last known working version is 6.4.0-6.

Re: cr2-raw format not properly detected

Posted: 2008-10-05T16:00:52-07:00
by magick
Try this command:
  • convert cr2:img_9812.cr2 test.jpg

Re: cr2-raw format not properly detected

Posted: 2008-10-05T22:23:06-07:00
by _maekke_
magick wrote:Try this command:
  • convert cr2:img_9812.cr2 test.jpg

Code: Select all

$ convert cr2:img_9812.cr2 test.jpg
$ echo $?
0
works without problems.

Re: cr2-raw format not properly detected

Posted: 2008-10-06T04:41:44-07:00
by bablokb
Hi,

this problem seems to be related to

viewtopic.php?f=3&t=12188

Adding the cr2: prefix is fine for a single, manual convert operation. But for an automatic, script-based image-processing application this is not a solution. And in previous versions, IM had no problem autodetecting the cr2 or nef image types.

Bernhard

Re: cr2-raw format not properly detected

Posted: 2008-10-06T16:48:42-07:00
by magick
We can reproduce the problem you posted and have a fix we're testing now. Look for a patch within the next day or two. Thanks.