Monday, September 19, 2022

[FIXED] How to identify if an image have an embed sRGB icc profile?

Issue

I would like to remove from my images their sRGB profile if they have one. the problem i don't know how to identify that an image have a sRGB profile. What the good way to do ?


Solution

In Imagemagick, use

convert image.suffix -format "%[profiles]\n" info:

or

convert image.suffix -format "%[profile:icc]\n" info:

unless your Imagemagick version is ancient.

For example:

convert logo.jpg  -format "%[profiles]\n" info:
icc


convert logo.jpg  -format "%[profile:icc]\n" info:
sRGB built-in


Answered By - fmw42
Answer Checked By - Cary Denson (PHPFixing Admin)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.