[magick-users] Converting CMYK jpg to RGB png
Ben lemasurier
ben.lemasurier at gmail.com
Mon Jul 17 13:17:40 PDT 2006
Hey everyone,
I am not having any problems when I attempt to convert a CMYK jpg to
an RGB png when using convert:
./convert test.jpg -profile USWebCoatedSWOP.icc -profile SRGBSPAC.ICM test.png
However, When I attempt to do this using MagickWand and PHP I am not
getting the same results.
Here is the code I am using to complete this conversion:
$mw = NewMagickWand();
MagickReadImage($mw, "test.jpg");
MagickRemoveImageProfiles($mw);
MagickSetImageProfile($mw, 'ICC', file_get_contents("USWebCoatedSWOP.icc"));
MagickProfileImage($mw, 'ICC', file_get_contents("SRGBSPAC.ICM"));
MagickSetImageFormat($mw, "PNG");
MagickWriteImage($mw, "test.png");
The image is written but it does not appear to have any sort of color
profile conversion.
Any ideas?
Thanks!
Ben
More information about the Magick-users
mailing list