ExifTool Forum

ExifTool => Newbies => Topic started by: da1k on July 01, 2023, 06:02:09 AM

Title: Keeping ICC_Profile
Post by: da1k on July 01, 2023, 06:02:09 AM
Hello,

For this above I wish to add to keep ICC profile. When I add -ICC_Profile or -icc_profile before path to files I receive warning:

Warning: ICC_Profile deleted. Image colors may be affected

what I do wrong?
Title: Re: Keeping ICC_Profile
Post by: StarGeek on July 01, 2023, 10:57:38 AM
Split from original post (https://exiftool.org/forum/index.php?topic=12938.0) as it was a long inactive thread.

That warning pops up because the command is removing the ICC_Profile.  But you are adding it back in with the -TagsFromFile option (https://exiftool.org/exiftool_pod.html#tagsFromFile-SRCFILE-or-FMT).  If you double check afterwards, you'll see it's still there.

C:\>exiftool -G1 -a -s -icc_Profile:all Y:\!temp\cccc\Test.Jpg
[ICC-header]    ProfileCMMType                  :
[ICC-header]    ProfileVersion                  : 2.1.0
[ICC-header]    ProfileClass                    : Display Device Profile
[ICC-header]    ColorSpaceData                  : RGB
[ICC-header]    ProfileConnectionSpace          : XYZ
[ICC-header]    ProfileDateTime                 : 0000:00:00 00:00:00
[ICC-header]    ProfileFileSignature            : acsp
[ICC-header]    PrimaryPlatform                 : Unknown ()
[ICC-header]    CMMFlags                        : Not Embedded, Independent
[ICC-header]    DeviceManufacturer              :
[ICC-header]    DeviceModel                     :
[ICC-header]    DeviceAttributes                : Reflective, Glossy, Positive, Color
[ICC-header]    RenderingIntent                 : Media-Relative Colorimetric
[ICC-header]    ConnectionSpaceIlluminant       : 0.9642 1 0.82491
[ICC-header]    ProfileCreator                  :
[ICC-header]    ProfileID                       : 0
[ICC_Profile]   ProfileDescription              : sRGB
[ICC_Profile]   RedMatrixColumn                 : 0.43607 0.22249 0.01392
[ICC_Profile]   GreenMatrixColumn               : 0.38515 0.71687 0.09708
[ICC_Profile]   BlueMatrixColumn                : 0.14307 0.06061 0.7141
[ICC_Profile]   RedTRC                          : (Binary data 40 bytes, use -b option to extract)
[ICC_Profile]   GreenTRC                        : (Binary data 40 bytes, use -b option to extract)
[ICC_Profile]   BlueTRC                         : (Binary data 40 bytes, use -b option to extract)
[ICC_Profile]   MediaWhitePoint                 : 0.9642 1 0.82491
[ICC_Profile]   ProfileCopyright                : Google Inc. 2016

C:\>exiftool -ext jpg -all= -TagsFromFile @ -IFD0:all -DateTimeOriginal -CreateDate -Icc_Profile Y:\!temp\cccc\Test.Jpg
Warning: ICC_Profile deleted. Image colors may be affected - Y:/!temp/cccc/Test.Jpg
    1 image files updated

C:\>exiftool -G1 -a -s -icc_Profile:all Y:\!temp\cccc\Test.Jpg
[ICC-header]    ProfileCMMType                  :
[ICC-header]    ProfileVersion                  : 2.1.0
[ICC-header]    ProfileClass                    : Display Device Profile
[ICC-header]    ColorSpaceData                  : RGB
[ICC-header]    ProfileConnectionSpace          : XYZ
[ICC-header]    ProfileDateTime                 : 0000:00:00 00:00:00
[ICC-header]    ProfileFileSignature            : acsp
[ICC-header]    PrimaryPlatform                 : Unknown ()
[ICC-header]    CMMFlags                        : Not Embedded, Independent
[ICC-header]    DeviceManufacturer              :
[ICC-header]    DeviceModel                     :
[ICC-header]    DeviceAttributes                : Reflective, Glossy, Positive, Color
[ICC-header]    RenderingIntent                 : Media-Relative Colorimetric
[ICC-header]    ConnectionSpaceIlluminant       : 0.9642 1 0.82491
[ICC-header]    ProfileCreator                  :
[ICC-header]    ProfileID                       : 0
[ICC_Profile]   ProfileDescription              : sRGB
[ICC_Profile]   RedMatrixColumn                 : 0.43607 0.22249 0.01392
[ICC_Profile]   GreenMatrixColumn               : 0.38515 0.71687 0.09708
[ICC_Profile]   BlueMatrixColumn                : 0.14307 0.06061 0.7141
[ICC_Profile]   RedTRC                          : (Binary data 40 bytes, use -b option to extract)
[ICC_Profile]   GreenTRC                        : (Binary data 40 bytes, use -b option to extract)
[ICC_Profile]   BlueTRC                         : (Binary data 40 bytes, use -b option to extract)
[ICC_Profile]   MediaWhitePoint                 : 0.9642 1 0.82491
[ICC_Profile]   ProfileCopyright                : Google Inc. 2016
Title: Re: Keeping ICC_Profile
Post by: da1k on July 01, 2023, 01:14:29 PM
Quote from: StarGeekSplit from original post (https://exiftool.org/forum/index.php?topic=12938.0) as it was a long inactive thread.
I though it will be easier to refresh old thread :)

Quote from: StarGeekThat warning pops up because the command is removing the ICC_Profile.  But you are adding it back in with the  -TagsFromFile option.  If you double check afterwards, you'll see it's still there.
I confirm that ICC Profile is in place. Thank you. I was sure that deleted means deleted and I didn't know where profile is exactly kept. I also didn't get idea to check if profile is kept after I run exiftool.