Skip to content

Instantly share code, notes, and snippets.

@johnbintz
Last active December 21, 2015 23:29
Show Gist options
  • Save johnbintz/6382319 to your computer and use it in GitHub Desktop.
Save johnbintz/6382319 to your computer and use it in GitHub Desktop.
Process a directory of images, color correcting for printout, for TGC use
# 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