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
 ICC profile

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

View 
UserName:
Password:
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
   
Message 

 

Emoji
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
pierrotsc Posted - May 29 2019 : 11:41:12
I want to be ale to wor with srgb all the time. So i need to remove any profile while opening, working and saving.

I found out that i need that before saving. If i do it while opening and then saving later on, the file will still have the original profile such as Adobe RGB.

 if iFilename <> '' then
      begin
        imageenview.IO.params.InputICCProfile.LoadFromFile
          (EmbeddedDM.helppath + '\sRGB2014.icc');
        imageenview.IO.SaveToFile(iFilename);
      end;

Now, if i do not have the InputICCProfile comand loaded before i save, it looks like the file on screen still has the original adobe RGB profile loaded. This is what I use when i open a file:
// Load the file
      imageenview.IO.LoadFromFile(fPathFilename);
      // setup destination color profile
      icc := TIEICC.Create();
      icc.LoadFromFile(EmbeddedDM.helppath + '\sRGB2014.icc');
      imageenview.IO.params.InputICCProfile.LoadFromFile
        (EmbeddedDM.helppath + '\sRGB2014.icc');
      // setup source color profile (sRGB?)
      imageenview.IO.params.InputICCProfile.Assign_sRGBProfile();
      // transform
      imageenview.IO.params.InputICCProfile.ConvertBitmap(imageenview.IEBitmap,
        ie24RGB, icc);
      icc.Free();

So how can i be sure that the pixels are indeed with srgb values and not adobeRGB ?

Thanks
2   L A T E S T    R E P L I E S    (Newest First)
pierrotsc Posted - May 31 2019 : 08:20:24
Sure, i can add this code to one of your demo and upload it. Will do that later
The way you can check that the profile is not saved is by opening Photoshop. It will show you the current attached profile.
Best
xequte Posted - May 31 2019 : 01:10:20
Hi

Can you forward a small demo that reproduces this issue, together with the image you are testing.

Nigel
Xequte Software
www.imageen.com