ProfileImage() doesn't apply ICC profile

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
Posts: 5
Joined: 2013-12-19T03:44:09-07:00
Authentication code: 6789

ProfileImage() doesn't apply ICC profile

Post by ig0rk0 »

Hello. I'm trying to apply ICC profile
MagickCore::InitializeMagick(NULL); path );

blobICC = m_image.iccColorProfile();
Magick::PixelPacket* pixel = m_image.getPixels(5, 5, 5, 5);

Magick::MagickBooleanType status = ProfileImage(m_image.image(), "ICC",, blobICC.length(), Magick::MagickFalse);
But image is not transformed (pixel not changed). I have looked into profiles.c and if condition which should do data transform is ignored(because ICC profile in image and ICC profile I'm sending to ProfileImage are the same?). But documentation says to transform I should have ICC profile in image. Should both profiles differ? How to apply ICC profile, already present in image?

Post Reply