Does MagickWand disable embed color profile?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Sha1
Posts: 1
Joined: 2013-01-25T06:12:52-07:00
Authentication code: 6789

Does MagickWand disable embed color profile?

Post by Sha1 »

Hi All.

Sorry for my bad English.

I'm writing simple tiff to jpeg convertor using MagicWand. Some of this tiff images have embed AdobeRGB color profile. How can I convert images with applying this color profile? I'm trying to use this code but input and output images are not similar:

Code: Select all

MagickReadImage(wand, strdup([path UTF8String]));

size_t profileLength = 0;
unsigned char* profile = MagickGetImageProfile(wand, "icc", &profileLength);

MagickSetImageFormat(wand, "jpeg");
MagickSetImageCompression(wand, JPEGCompression);
MagickSetImageCompressionQuality(wand, 80);

MagickSetImageProfile(wand, "icc", profile, profileLength);
MagickProfileImage(wand, "icc", profile, profileLength);

MagickWriteImage(wand, strdup([writePath UTF8String]));
Thanks a lot!
Post Reply