Many versions of ImageMagick and Imagick later I am still coming up against this issue.
Here is the exact code I am using with PHP:
Code: Select all
<?php
$img = new Imagick("Test_CMYK.psd");
$img->setImageFormat('png');
$icc = file_get_contents('ColorArt85290.icc');
$img->profileImage('ColorArt85290', $icc);
$icc = file_get_contents('sRGB.icc');
$img->profileImage('sRGB', $icc);
$img->setImageColorspace(imagick::COLORSPACE_RGB);
header( "Content-Type: image/png" );
echo $img;
?>
And here is the exact code I am using via the command line:
Code: Select all
convert Test_CMYK.psd -profile ColorArt85290.icc -profile sRGB.icc -colorspace RGB Test_RGB.png
The exact files I am using from ICC profiles to Image files are located here:
http://cole.nitroy.com/Files/Temp/Test_IM.zip
I even changed my delegates.xml file and altered all ghostscript delegates as mentioned in this article:
http://john.ukmn.com/2007/06/19/imagema ... yk-to-rgb/
ImageMagick version 6.4.9-1
Imagick version 2.2.2RC4
Running on an Intel Mac as a 32bit binary on OS X 10.5.6 & 10.5.2
I have a feeling it has to do with the order of how I am doing things with Imagick in PHP that is the issue. The image created by the PHP Imagick is light washed out green while the original has dark deep greens. I've tried just about everything, has
anyone at all been able to take a CYMK image in and spit out proper RGB out???