Magick++ Read Image with ICC colorspace
- by FlashFan
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!