Created
May 19, 2015 16:54
-
-
Save m3nd3s/147ab74e95e631c97096 to your computer and use it in GitHub Desktop.
Find and Resize Images
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 | |
set -e | |
for F in $(find . -size +900k) | |
do | |
FNAME=`basename $F` | |
mv "$F" "$F-orig" | |
echo -n "Converting ${FNAME}: " | |
convert -strip -quality 80 -resize "1024x768>" "$F-orig" "$F" | |
echo "done" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment