imageimagemagickimagickcolor-profilecolor-management

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


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