Skip to content

Instantly share code, notes, and snippets.

@calston
Created August 6, 2013 10:24
Show Gist options
  • Save calston/6163397 to your computer and use it in GitHub Desktop.
Save calston/6163397 to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in *
do
w=`identify -format "%[fx:w]" "$i"`
if [ "$w" -gt "1280" ]; then
mogrify -resize 1280x1024 "$i"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment