Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rybesh/118114 to your computer and use it in GitHub Desktop.
Save rybesh/118114 to your computer and use it in GitHub Desktop.
batch convert and resize JSTOR page images
(for f in $(find . -name "*.tif"); do if [ ! -f "${f/%tif/gif}" ]; then convert "$f" -resize 800 "${f/%tif/gif}"; fi; done && echo "Finished converting `pwd`" | mail -s "Finished `pwd`" ryanshaw@ischool.berkeley.edu) &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment