Hi,
1/
I am using the following code to insert a custom ICC / ICM profile within a jpeg file:
ImageEnIO1.LoadFromFile( 'c:\testimage.JPG' );
ImageEnIO1.params.InputICCProfile.LoadFromFile( 'c:\myprofile.icc' );
ImageEnIO1.Params.JPEG_Quality := 100; //1 to 100
ImageEnIO1.Params.JPEG_CromaSubsampling:= ioJPEG_NONE; // 4:4:4 croma sub-sampling. Highest quality
ImageEnIO1.Params.JPEG_DCTMethod := ioJPEG_ISLOW; // Slow but accurate integer algorithm (default)
ImageEnIO1.Params.JPEG_Progressive := true;
ImageEnIO1.Params.JPEG_Smooth := 0;
ImageEnIO1.SaveToFile( 'c:\testimage.JPG_ICC.JPG');
I don't want to alter original image quality, am I using correct JPEG settings?
I have noticed a significant increase of file size (from 0.7MB to 1.7MB with attached samples), what is causing such increase?
2/
I am then using the following code to display the ICC profile information contained this jpeg file:
ImageEnView1.IO.LoadFromFile( 'c:\testimage.JPG_ICC.JPG' );
labelICCIn.Enabled:= ierICC in ImageEnView1.IO.Params.ContainsInfo;
labelICCIn.Caption:= 'IN - Color space: '+ ImageEnView1.IO.Params.InputICCProfile.InputColorSpace
+ ' - Description: ' + ImageEnView1.IO.params.InputICCProfile.Description
+ ' - Copyright: ' + ImageEnView1.IO.params.InputICCProfile.Copyright;
labelICCOut.Caption:= 'OUT - Color space: '+ ImageEnView1.IO.Params.OutputICCProfile.InputColorSpace
+ ' - Description: ' + ImageEnView1.IO.params.OutputICCProfile.Description
+ ' - Copyright: ' + ImageEnView1.IO.params.OutputICCProfile.Copyright;
With some profile, like the attached one, I obtain an empty description an copyright while color space is ok (RGB).
Opening the same file in GIMP show me the expected description & copyright values, am I missing something?
DELPHI 10.1
IMAGEEN 12.0
thanks for the support
Thomas
attach/tjarrault/20237782228_ICC_test_data.zip
2663.56 KB
Thomas