How to identify if an image have an embed sRGB icc profile?
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 ?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: How to identify if an image have an embed sRGB icc profile?
If you want to remove any .icc profile, then use
See https://www.imagemagick.org/Usage/formats/#profiles
You can test for profile using
See https://www.imagemagick.org/script/escape.php
Code: Select all
convert image +profile "icc" result
You can test for profile using
Code: Select all
convert image -format "%[profiles]" info:
Re: How to identify if an image have an embed sRGB icc profile?
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
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: How to identify if an image have an embed sRGB icc profile?
I suggest you search for the characters "sRGB" in the name.
snibgo's IM pages: im.snibgo.com
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: How to identify if an image have an embed sRGB icc profile?
try
then as snibgo says, look for sRGB in the returned information.
Code: Select all
convert image -format "%[profile:icc]" info:
Re: How to identify if an image have an embed sRGB icc profile?
thanks i will do like this ...