Skip to content

Instantly share code, notes, and snippets.

@johnrc
Last active August 29, 2015 14:06
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 johnrc/9f8333f102f610ae0bbb to your computer and use it in GitHub Desktop.
Save johnrc/9f8333f102f610ae0bbb to your computer and use it in GitHub Desktop.
Tiny bash script to convert images to lesser quality
# `brew install imagemagick` will give access to `convert`
# This loops through the current directory and converts
# each file to 50% the quality
for x in *
do
convert $x -quality 50 ~/noedit/$x
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment