Created
September 27, 2012 20:49
-
-
Save henningjensen/3796384 to your computer and use it in GitHub Desktop.
Imagemagick convert crop and cut to fit specific size
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
#!/bin/bash | |
for f in *.png; do | |
convert $f -thumbnail 200x200^ -gravity west -extent 200x200 thumbs/${f%.*}.png | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment