ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder


ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 CMS Issue C++ Builder 2007 & latest ImageEn

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List


Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

Check here to subscribe to this topic.

T O P I C    R E V I E W
Andy_Bell Posted - Nov 10 2020 : 10:10:23

My system has CMS set to true, as I want the images to look correct on screen.

However, at times I need to batch convert some images without displaying them, giving the user the choice to either change the ICC profile or leave the original in place.

My understanding is that if CMS is true in the global settings, then IE's default operation is to discard the ICC profile after loading the image and to save it with sRGB...

So, my code looks something like this:

IEGlobalSettings()->EnableCMS = false; //turn off cms so as not to lose the embedded profile
IEGlobalSettings()->EnableCMS = true;

However, this does not work - the ICC profile is still stripped from the image and no profile is embedded in the image when it is saved...

If I NEVER turn CMS on then IE still removes the embedded profile and saves the image without one.

So, how do I load an image and save it and retain its color profile?

My sample project and test file, that has ProPhotoRgb ICC embedded can be downloaded from:


1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 19 2020 : 16:08:59
Hi Andy

Input ICC profiles are not extracted from RAW files. ICC is applied inside the libraw decoder and then discarded.

Xequte Software