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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ICC profile
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

pierrotsc

USA
497 Posts

Posted - May 29 2019 :  11:41:12  Show Profile  Reply
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

xequte

38611 Posts

Posted - May 31 2019 :  01:10:20  Show Profile  Reply
Hi

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

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - May 31 2019 :  08:20:24  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: