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
_______________________________________________
Magick-users mailing list
Magick-users imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users
|