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 does not work with 16bit Images, and PNG 16bit
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Scally

6 Posts

Posted - Apr 04 2018 :  09:29:45  Show Profile  Reply
The profile conversion for 16 bit images does not work.
The result is a black screen.
Works if ie48RGB is replaced with ie24RGB, but this is not allowed.

Also, when loading 16-bit PNG images, they are automatically converted to 8-bit images. So it should not be.


 IM1.LegacyBitmap:=False;
 IM1.IO.NativePixelFormat:=True;
 IM1.IO.LoadFromFileTIFF('D:\IMProf\16.TIF');

 ICC:=TIEICC.Create;
 try
  ICC.Assign_AdobeRGB1998;
  ICC.ConvertBitmap(IM1.IO.IEBitmap, ie48RGB {ie24RGB}, ICC);
 finally
  ICC.Free;
 end;

xequte

38172 Posts

Posted - Apr 05 2018 :  06:40:01  Show Profile  Reply
Hi

ie48RGB conversion was not supported, but we have added it now. Please email me for a pre-release of the next version.



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

pierrotsc

USA
497 Posts

Posted - Apr 06 2018 :  14:24:15  Show Profile  Reply
When you assign the profile to the bitmap and save the image back, does your resulting image still has the profile attached ?
A way to tell it is to open it in photoshop and see if it tells you that there are no profile attached to the image.
Pierre
Go to Top of Page

Scally

6 Posts

Posted - Apr 08 2018 :  13:35:33  Show Profile  Reply
I have a task, full color correction of 16 bit images, but so far I can not even do minimal actions, downloading and converting to the ICC I chose. I have a demonstration set of files, only DCU files. There is a desire to buy a component, but what I need is not implemented. I hope the full support of 16 bit images will appear soon.
Go to Top of Page

xequte

38172 Posts

Posted - Apr 08 2018 :  21:22:28  Show Profile  Reply
Hi

There are some areas of ImageEn where ie48RGB is not yet supported, but we are implementing support as demand calls for it.

We have implemented it for profile conversion now. If there are other areas where you need ie48RGB support, let us know.

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

pierrotsc

USA
497 Posts

Posted - Apr 09 2018 :  09:25:01  Show Profile  Reply
Thanks Nigel, but i have not find a way to save an ICC profile with the image. When I open any images in photoshop, i always get the message that no profiles are attached with the document. Is that something that can be implemented in the future ?
Thanks
Go to Top of Page

xequte

38172 Posts

Posted - Apr 09 2018 :  19:50:04  Show Profile  Reply
Hi

I don't know much about Photoshop, but ImageEn will save the profile associated with the image.

A profile can be either be included in the file, which is the InputColorProfile property (this is the color profile set by the image source, such as a scanner, camera, etc) or loading into InputColorProfile.
Note: if EnableCMS = True, the input profile will be automatically applied to the image and then discarded.

You can also specify a DefaultICCProfile, which is used for files without an input profile (but not saved to file).

If either the input or default profiles are valid, and have not been applied to the image (i.e. check IsApplied = False) then a profile will be saved with the image.


References:
https://www.imageen.com/help/TIOParams.InputICCProfile.html
https://www.imageen.com/help/TIOParams.DefaultICCProfile.html
https://www.imageen.com/help/TIEImageEnGlobalSettings.EnableCMS.html


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

pierrotsc

USA
497 Posts

Posted - Apr 10 2018 :  09:50:45  Show Profile  Reply
The InputICC profile docs says that the profile is removed after being applied. This is my code in the oncreate event
IERegisterFormats;
IEGlobalSettings.AutoFragmentBitmap := False;
// Apply color profile before rendering
IEGlobalSettings().EnableCMS := True;
IEGlobalSettings().ApplyColorProfileOnRendering := True;
ImageEnVect.IO.NativePixelFormat := True; // this says "convert to RGB"
ImageEnVect.IO.params.BMP_HandleTransparency := True;
ImageEnVect.IO.params.DefaultICCProfile.LoadFromFile
(EmbeddedDM.helppath + '\sRGB2014.icc');

If i load an image with any profiles attached to it and save them back, load them in photoshop, it will tell me that this document has no profile attached.
You can download a trial of photoshop. Under edit-->color settings, be sure to check the 2 boxes that say "Let me know about profile mismatched"

Best
Go to Top of Page

xequte

38172 Posts

Posted - Apr 10 2018 :  19:41:15  Show Profile  Reply
Hi

If EnableCMS = False, does Photoshop still report no profile?


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

pierrotsc

USA
497 Posts

Posted - Apr 11 2018 :  09:13:29  Show Profile  Reply
Interesting. It will keep the embedded profile then. I load an image with the adobe profile but want imageen to convert it to srgb. So i use the convertbitmap command. I save the file back and open it in Photoshop. It does not strip the profile anymore but keeps the original profile that was loaded. see attached.

Go to Top of Page

xequte

38172 Posts

Posted - Apr 11 2018 :  17:24:28  Show Profile  Reply
OK, cool. Now use the following:

IERegisterFormats;
IEGlobalSettings.AutoFragmentBitmap := False;
// Apply color profile before rendering
IEGlobalSettings().EnableCMS := True;
IEGlobalSettings().ApplyColorProfileOnRendering := True;
ImageEnVect.IO.NativePixelFormat := True; // this says "convert to RGB"
ImageEnVect.IO.params.BMP_HandleTransparency := True;
ImageEnVect.IO.params.InputICCProfile.LoadFromFile(EmbeddedDM.helppath + '\sRGB2014.icc');


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

pierrotsc

USA
497 Posts

Posted - Apr 11 2018 :  19:08:58  Show Profile  Reply
It strips the profile like before. Giveme the error message above but saying that the image has no profile attached.
Best
Go to Top of Page

xequte

38172 Posts

Posted - Apr 11 2018 :  19:29:05  Show Profile  Reply
Please email me sRGB2014.icc

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

pierrotsc

USA
497 Posts

Posted - Apr 12 2018 :  08:46:41  Show Profile  Reply
Nigel, i have aemailed the file. Best
Go to Top of Page

xequte

38172 Posts

Posted - Apr 12 2018 :  23:04:50  Show Profile  Reply
Hi

This code successfully wrote the profile in my testing:

IEGlobalSettings().EnableCMS := True;
IEGlobalSettings().ApplyColorProfileOnRendering := True;
ImageEnView1.IO.NativePixelFormat := True; // this says "convert to RGB"
ImageEnView1.IO.LoadFromFile( 'D:\201849018_A1.jpg' );
ImageEnView1.IO.params.InputICCProfile.LoadFromFile('D:\sRGB2014.icc');
ImageEnView1.IO.SaveToFile( 'D:\Test_SRGB.jpg' );


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

pierrotsc

USA
497 Posts

Posted - Apr 13 2018 :  09:06:49  Show Profile  Reply
Nigel, indeed it does work. So something somewhere is removing the profile before i save it.
Let me troubleshoot.

Thank you very much
Best
Pierre
Go to Top of Page

xequte

38172 Posts

Posted - Apr 13 2018 :  17:29:13  Show Profile  Reply
Hi Pierre

As you have EnableCMS = true, ensure you load the profile after you have loaded the image.

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

pierrotsc

USA
497 Posts

Posted - Apr 13 2018 :  20:21:34  Show Profile  Reply
Yes, this is what i found out. looks like everything is good now.
Appreciate the troubleshooting
Go to Top of Page

Scally

6 Posts

Posted - Apr 21 2018 :  11:57:40  Show Profile  Reply
I need the functions of a RAW converter. To do this, i need a full work with the image in the mode ie48RGB. Color correction, histograms. Exposure, Contrast, Lighting, Shadow, White, Black, Saturation ... Applyng ICC. Saving as a TIFF RGB 16Bit / Channel.
Go to Top of Page

pierrotsc

USA
497 Posts

Posted - Apr 21 2018 :  20:18:19  Show Profile  Reply
Yes, that would be awesome. And curves with 16 bit support.
Go to Top of Page

xequte

38172 Posts

Posted - Apr 22 2018 :  19:58:56  Show Profile  Reply
Hi

I've added wider ie48RGB support to our to-do list. To raise its priority please add and vote for it on our uservoice page:

https://imageen.uservoice.com


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: