Skip to content

Instantly share code, notes, and snippets.

@irneh
Last active August 29, 2015 14:05
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 irneh/587fa009bdf90de1cbc7 to your computer and use it in GitHub Desktop.
Save irneh/587fa009bdf90de1cbc7 to your computer and use it in GitHub Desktop.
file=$(basename "$1")
ext="${file##*.}"
file="${file%.*}"
declare -a vars=(120x120 114x114 80x80 72x72 58x58 57x57 50x50 29x29)
for v in ${vars[@]}; do
convert -resize $v $1 $file-$v.$ext
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment