Created
June 9, 2012 13:37
-
-
Save opsb/2901008 to your computer and use it in GitHub Desktop.
Resize images in a directory to a maximum height/width (retaining aspect ratio)
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
| for FILE in $(ls *.jpg | grep -v thumbnail); do convert $FILE -resize 800x600 $FILE; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment