Page 1 of 1
How to identify if an image have an embed sRGB icc profile?
Posted: 2018-02-25T14:35:00-07:00
by loki5100
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 ?
Re: How to identify if an image have an embed sRGB icc profile?
Posted: 2018-02-25T14:41:18-07:00
by fmw42
If you want to remove any .icc profile, then use
Code: Select all
convert image +profile "icc" result
See
https://www.imagemagick.org/Usage/formats/#profiles
You can test for profile using
Code: Select all
convert image -format "%[profiles]" info:
See
https://www.imagemagick.org/script/escape.php
Re: How to identify if an image have an embed sRGB icc profile?
Posted: 2018-02-25T23:17:50-07:00
by loki5100
thanks fmw42 but this not say me if it's was a sRGB profile or other that was in the picture
i want only to delete sRGB profile
Re: How to identify if an image have an embed sRGB icc profile?
Posted: 2018-02-26T04:29:59-07:00
by snibgo
I suggest you search for the characters "sRGB" in the name.
Re: How to identify if an image have an embed sRGB icc profile?
Posted: 2018-02-26T10:39:32-07:00
by fmw42
try
Code: Select all
convert image -format "%[profile:icc]" info:
then as snibgo says, look for sRGB in the returned information.
Re: How to identify if an image have an embed sRGB icc profile?
Posted: 2018-02-26T10:52:44-07:00
by loki5100
thanks i will do like this ...