Skip to content

Instantly share code, notes, and snippets.

@opsb
Created June 8, 2012 13:25
Show Gist options
  • Select an option

  • Save opsb/2895595 to your computer and use it in GitHub Desktop.

Select an option

Save opsb/2895595 to your computer and use it in GitHub Desktop.
Create thumbnails for all files in a directory using imagemagick
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