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 ?
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