CMYK->sRGB conversion fails without any error
Posted: 2013-06-05T05:24:52-07:00
Hi all,
I'm using IM to convert CMYK images to sRGB with this command line:
On some images, the conversion produces an image that is still a CMYK.
Here is an example on 2 CMYK images, one successfully converted, and one not:
I've reproduced this issue with all IM versions I've tested, including the latest (6.8.5-9).
Any help appreciated.
Regards,
Maxime
I'm using IM to convert CMYK images to sRGB with this command line:
The ICC profile comes from http://www.color.org/srgbprofiles.xalterconvert input.jpg -profile sRGB_v4_ICC_preference.icc output.jpg
On some images, the conversion produces an image that is still a CMYK.
Here is an example on 2 CMYK images, one successfully converted, and one not:
If I add a "-colorspace sRGB", all the CMYK images are correctly converted to sRGB but when displayed, colorimetry is wrong (too saturated).identify imagesToConvert/*
imagesToConvert/7853680641.jpg JPEG 2362x1174 2362x1174+0+0 8-bit CMYK 1.314MB 0.000u 0:00.000
imagesToConvert/7853680970.jpg[1] JPEG 600x220 600x220+0+0 8-bit CMYK 74.6KB 0.000u 0:00.000
./im-6.8.5.9/bin/convert imagesToConvert/7853680641.jpg -quality 95 -profile sRGB_v4_ICC_preference.icc images-srgb/7853680641.jpg
./im-6.8.5.9/bin/convert imagesToConvert/7853680970.jpg -quality 95 -profile sRGB_v4_ICC_preference.icc images-srgb/7853680970.jpg
identify images-srgb/*
images-srgb/7853680641.jpg JPEG 2362x1174 2362x1174+0+0 8-bit sRGB 360KB 0.000u 0:00.000
images-srgb/7853680970.jpg[1] JPEG 600x220 600x220+0+0 8-bit CMYK 147KB 0.000u 0:00.000
I've reproduced this issue with all IM versions I've tested, including the latest (6.8.5-9).
Any help appreciated.
Regards,
Maxime