cr2-raw format not properly detected

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
_maekke_

cr2-raw format not properly detected

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: cr2-raw format not properly detected

Post by magick »

Try this command:
  • convert cr2:img_9812.cr2 test.jpg
_maekke_

Re: cr2-raw format not properly detected

Post 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.
bablokb
Posts: 29
Joined: 2005-06-11T06:21:59-07:00

Re: cr2-raw format not properly detected

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: cr2-raw format not properly detected

Post 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.
Post Reply