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.
I have found possible bug in ImageMagick 6.8.6-3 2013-09-09 Q16 PHP version
most of the files (especially PSD files) convert without any problems but there's sometimes problem with JPG files
(original CMYK on the left and RGB after conversion on the right):
Why are you using AdobeRGB colorspace? Are you also doing a gamma or other shift?
When I convert (v6.8.7-0) your original to sRGB.icc or sRGB_v4_preference.icc or Adobe1998.icc, and do a flicker test against the original, using Microsoft Photo Viewer, I can't see much if any difference.
I have tried different color spaces
with the recommended "sRGB_v4_ICC_preference.icc" the result looks the same for me - i.e. wrong - the soup on the photo has a strong light magenta cast
I'm working on php>5.3 so as you can see in the script I'm not doing any gamma or other shift - just the "negateImage" - this is the original script that created the above images
We are experiencing a similar issue after Amazon AMI update
ImageMagick 6.7.8-9 2014-05-12 Q16
imagick 3.1.2
PHP 5.3.29 (cli) (built: Aug 20 2014 16:41:38)
The following code used to work now image rather than being yellow flowers are blue flowers
# if CMYK attempt to convert to RGB.
if ($image->getImageColorspace() == Imagick::COLORSPACE_CMYK) {
$profiles = $image->getImageProfiles('*', false);
# we're only interested if ICC profile(s) exist
$has_icc_profile = (array_search('icc', $profiles) !== false);
# if it doesnt have a CMYK ICC profile, we add one
if ($has_icc_profile === false) {
$icc_cmyk = file_get_contents(dirname(__FILE__).'/USWebUncoated.icc');
$image->profileImage('icc', $icc_cmyk);
#$image->setImageProfile('icc', $icc_cmyk);
unset($icc_cmyk);
}
# then we add an RGB profile
$icc_rgb = file_get_contents(dirname(__FILE__).'/sRGB_v4_ICC_preference.icc');
$image->profileImage('icc', $icc_rgb);
#$image->setImageProfile('icc', $icc_rgb);
unset($icc_rgb);
$image->setImageColorSpace(Imagick::COLORSPACE_SRGB);
}