Magick++ Read Image with ICC colorspace

Posted by FlashFan on Stack Overflow See other posts from Stack Overflow or by FlashFan
Published on 2011-01-31T15:23:47Z Indexed on 2011/01/31 15:26 UTC
Read the original article Hit count: 253

Filed under:
|
|

Hi guys

I need to know how I can read an image which uses a separate ICC Color Profile.

The image consists of 26'099'520 Bytes which is the result of 2480 width* 3508 height * 3 components per pixel.

I tried it with the following code:

Image * image = new Image();
Blob * blob = new Blob(imagedata.c_str(),imagedata.length());
image->read(*blob,Geometry(2480,3508),8,"RGB");
Blob * iccblob = new Blob(iccdata.c_str(),iccdata.length());
image->iccColorProfile(*iccblob);
image->write("result.jpg");

But the colors are the same as when I don´t set the Icc-profile to the image. And the colors are wrong in both cases.

Thanks for your help!

© Stack Overflow or respective owner

Related posts about c++

Related posts about imagemagick