Page 1 of 1

Trying to "remake" a BASH script...

Posted: 2016-11-03T10:45:46-07:00
by RageMagretht
...but I was offline from July to just last month, and all my backups were lost in a fire.

What I'm looking to do is evaluate a directory of JPEG files for any that have no, or invalid, color profiles/color spaces. Then I'M thinking of using IM or Exiv2 to put in sRGB or Adobe RGB as provided by each utility. I don't want to use Exiftool, as it requires the "reading in" of ICC profiles, and so far as I'm aware, vanilla sRGB without modifications (i.e. Dark Palette or whatever it is) aren't available on the Net anymore.

You may remember me by a screen name I used a lot in 2015 and before: Silversleeves.

Any help would be appreciated. It annoys me to Exiv2 whole folders of JPEGs to A-RGB unnecessarily.

Magreth

Re: Trying to "remake" a BASH script...

Posted: 2016-11-03T15:26:02-07:00
by fmw42
Please always provide your IM version and platform!

See string formats for profiles and profile:icc and profile:icm at http://www.imagemagick.org/script/escape.php. That will help you test for existing profiles. Also see the string format for colorspace.