CR3 not fully supported

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.
Locked
johnbuuck
Posts: 6
Joined: 2014-06-20T12:44:51-07:00
Authentication code: 6789

CR3 not fully supported

Post by johnbuuck »

ImageMagick 7.0.9-5 built with VS2017 on Windows 10
Commands to demonstrate:
The following command works as expected:
>Identify fred.cr2 fred.cr3
Result:
fred.cr2 CR2 5010x3335 5108x3349+98+14 8 bit sRGB 13.2225MiB 0.016u 0:00.008
fred.cr3 CR3 6024x4020 6288x4056+264+36 8-bit sRGB 31.9214MiB 0.000u 0:00.005

The following command gets an error because CR3 is not registered as a DNG coder alias like CR2 is:
>Identify fred.cr3 fred.cr2
Result:
fred.cr2 CR2 5010x3335 5108x3349+98+14 8 bit sRGB 13.2225MiB 0.016u 0:00.008
identify.exe: NoDecodeDelegateForThisImageFormat `CR3' @ error/constitute.c/ReadImage/562.

So CR3 files are processed successfully as long as some other DNG-alias-type file is processed first.
The fix is to add the following line

MagickCoderAlias("DNG", "CR3") \

to the #define MagickDNGAliases (line 25 of ImageMagick\coders\dng.h)

User avatar
magick
Site Admin
Posts: 11254
Joined: 2003-05-31T11:32:55-07:00

Re: CR3 not fully supported

Post by magick »

The CR3 alias is defined in dng.h in the latest release of ImageMagick.

Locked