List Info

Thread: Converting CMYK jpg to RGB png




Converting CMYK jpg to RGB png
user name
2006-07-17 20:17:40
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-usersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )