Created
December 20, 2011 01:46
-
-
Save hplc/1499849 to your computer and use it in GitHub Desktop.
Identify CMYK colorspace JPG files.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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