Created
June 8, 2012 13:25
-
-
Save opsb/2895595 to your computer and use it in GitHub Desktop.
Create thumbnails for all files in a directory using imagemagick
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); do convert $FILE -thumbnail 100x100^ -gravity center -extent 100x100 "${FILE%.*}.thumbnail.jpg"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment