Skip to content

Instantly share code, notes, and snippets.

@hplc
Created December 20, 2011 01:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hplc/1499849 to your computer and use it in GitHub Desktop.
Save hplc/1499849 to your computer and use it in GitHub Desktop.
Identify CMYK colorspace JPG files.
#!/bin/sh
# Find out all .jpg files except in *CorelDRAW* subdirectories and identify them.
# Filter out CMYK colorspace files.
find ./ -path "*CorelDRAW*" -prune -o -name *.jpg -print0 | \
xargs -0 identify -verbose | \
grep -E '(^Image|^ Colorspace: CMYK)' | \
grep -B1 CMYK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment