Created
October 18, 2013 07:23
-
-
Save johannilsson/7037708 to your computer and use it in GitHub Desktop.
Helper that resize all png images in the given directory.
This file contains 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
ROOT=$1 | |
OUT=$ROOT/out | |
rm -rf $OUT | |
mkdir -p $OUT | |
for i in `ls $ROOT | grep .png`; do | |
#convert $ROOT/$i -resize 40% $OUT/$i | |
convert $ROOT/$i -resize 185x185 $OUT/$i | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment