Last active
December 21, 2015 23:29
-
-
Save johnbintz/6382319 to your computer and use it in GitHub Desktop.
Process a directory of images, color correcting for printout, for TGC use
This file contains hidden or 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
# your source PNG files are in the input directory | |
mkdir -p output | |
for file in input/*.png; do | |
filename=${file##*/} | |
convert "${file}" -level "0%,100%,1.5" "output/${filename}" | |
# what the heck, make them smaller, too | |
# bandwidth ain't cheap | |
optipng "output/${filename}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment