Bob Friesenhahn wrote:

On Thu, 18 Aug 2005, Michal Paczek wrote:
[...]
I do not have time to supply a complete code example, but I can provide some more hints. The user of ProfileImage() needs to copy the entire ICC profile from disk into memory somehow. For example, this may be accomplished via fopen() & fread(). The 'datum' argument is the address in memory where the profile has been loaded, and the length argument is the size of the profile in memory.

In addition to ProfileImage(), ImageMagick provides SetImageProfile() which can be used to attach an initial profile to the image without applying any CMS transforms.

You can use GetImageProfile() to gain access to an existing profile which is attached to the image. This is useful in order to know if the image already had a profile, or perhaps if you want to use the same profile for other things.

phicsMagick Maintainer,    http://www.GraphicsMagick.org/

[...]

Thanks for advices, code implementation was easy and is working fine now, but...I met some strange things in converssion tiff file with LAB to the RGB colorspace. Colours change in strange way and are not correct. Colorspace conversion works, becouse I checked it with couple of different ICC-RGB profiles and allways image colours were changed. I tried to apply LAB color profile first and than convert to RGB (colorspace conversion made twice), but nothing happened, colours were still .

If you want I can send that tiff file to you...so you can check that...

If I open this file in Photoshop 7 and save it later after conversion everything is ok.

Best regards
Michal


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to