Last active
August 29, 2015 14:27
-
-
Save mgcon/86da4e99bd667d217be1 to your computer and use it in GitHub Desktop.
batch resize images using Image Magik convert
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
#! /bin/bash | |
# adjust to taste | |
for i in `ls *JPG`; do | |
BASENAME=$(basename "$i" .JPG) | |
convert $i -resize 400x Resized/$BASENAME.png | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment