Last active
August 29, 2015 14:05
-
-
Save irneh/587fa009bdf90de1cbc7 to your computer and use it in GitHub Desktop.
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
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