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
 DefaultICCProfile question
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Murat

Russia
48 Posts

Posted - Sep 05 2012 :  07:09:31  Show Profile  Reply
Hi Fabrizio,

I have a NEF file with a built-in JPEG preview.

The problem is that NEF file contains color profile information while JPEG preview doesn't contain it.

So I would like to apply color information to the output image by my self. Unfortunately I was unable to get a working code with DefaultICCProfile usage. My code is:

ImageEN1.IO.Params.DefaultICCProfile.LoadFromFile('...path to AdobeRGB1998.icc');
ImageEN1.IO.LoadFromStreamJpeg(RAWPreviewJPEGStream);


But it doesn't work.

I read from ImageEN documentation that DefaultICCProfile can be used when no other ICCProfiles had been found in an image.

After analyzing imageenio.pas and jpegfilt.pas files I've determined that DefaultICCProfile is used only inside the jpegflt.pas:IEConvertColorFunction function. While the last one is invoked for images without ICC. So the above code doesn't work.

Your advice (clarifications) would be very helpful!

Murat

Russia
48 Posts

Posted - Sep 17 2012 :  02:50:25  Show Profile  Reply
Hi Fabrizio and Nigel,

Any news regarding the above ICC Problem?
Go to Top of Page

xequte

38610 Posts

Posted - Sep 18 2012 :  02:23:23  Show Profile  Reply
Hi

I'm afraid we have not had time to investigate this yet.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

fab

1310 Posts

Posted - Sep 18 2012 :  07:49:56  Show Profile  Reply
Unfortunately this is not possible with current version. Anyway you can try to apply the color profile transformation after load. For example:

var
  icc:TIEICC;
begin
  ImageEnView1.IO.LoadFromFile('input.jpg');

  // setup destination color profile
  icc := TIEICC.Create();
  icc.LoadFromFile('AdobeRGB1998.icc');
 
  // setup source color profile (sRGB?)
  ImageEnView1.IO.Params.InputICCProfile.Assign_sRGBProfile();

  // transform
  ImageEnView1.IO.Params.InputICCProfile.ConvertBitmap(ImageEnView1.IEBitmap, ie24RGB, icc);
  icc.Free();
end;


Hope this helps.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: