Skip to content

Instantly share code, notes, and snippets.

@mgcon
Last active August 29, 2015 14:27
Show Gist options
  • Save mgcon/86da4e99bd667d217be1 to your computer and use it in GitHub Desktop.
Save mgcon/86da4e99bd667d217be1 to your computer and use it in GitHub Desktop.
batch resize images using Image Magik convert
#! /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