When trying to convert CR2 to PNG, I get the following error:
Code: Select all
"ImageMagick execution failed: 'convert.exe: FailedToExecuteCommand `dcraw.exe -6 -W -O \"magick-43188phP2-I6ejfcJ.ppm\" \"magick-43188t9WLd2cunaon\"' (-1073741819) @ error/delegate.c/ExternalDelegateCommand/463.
convert.exe: DelegateFailed `dcraw.exe -6 -W -O \"%u.ppm\" \"%i\"' @ error/delegate.c/InvokeDelegate/1845.
convert.exe: UnableToOpenBlob 'magick-43188phP2-I6ejfcJ.ppm': No such file or directory @ error/blob.c/OpenBlob/2695.
convert.exe: NoImagesDefined `D:\\temp\\m\\67\\50\\67508c75c99a44a58ac17417787992f3\\1334012583_-mg-9952.jpg' @ error/convert.c/ConvertImageCommand/3253.'"
ImageMagick-6.9.1-2-Q16: Is able to convert the image, no error
ImageMagick-7.0.2-Q16: Fails, same error
ImageMagick-7.0.6-Q16: Fails, same error
It seems the issue is related to the installed dcraw.exe version that comes with the IM installation. IM uses dcraw to convert RAW files (Canon, Nikon, ...) and calls it as a delegate to do a "pre-conversion" of the file.
Code: Select all
//6.9.1-2 version
dcraw -v z:\share\TestFiles\1334012583_-mg-9952.CR2
Loading Canon EOS 5D image from z:\share\TestFiles\1334012583_-mg-9952.CR2 .
..
Scaling with darkness 128, saturation 3692, and
multipliers 2.395443 1.000000 1.253807 1.000000
AHD interpolation...
Converting to sRGB colorspace...
Writing data to z:\share\TestFiles\1334012583_-mg-9952.ppm ...
//7.0.2 & 7.0.6 version
dcraw -v z:\share\TestFiles\1334012583_-mg-9952.CR2
Loading Canon EOS 5D image from z:\share\TestFiles\1334012583_-mg-9952.CR2 .
..
Scaling with darkness 128, saturation 3692, and
multipliers 2.395443 1.000000 1.253807 1.000000
AHD interpolation...
Converting to sRGB colorspace...
CRASH
- ImageMagick-6.9.1-2-Q16: v9.19
- ImageMagick-7.0.2-Q16: v9.27
- ImageMagick-7.0.6-Q16: v9.27
Thanks!
Maarten