Thumbnail Generator and Photo Resizer

Tagged with shell

Language: Bash

Creates a thumbnail and a preview for each image in a folder

View as text

for i in /photos/*.jpg
do
  convert -sample 50x50 "$i" "`basename $i .jpg`_thumb.jpg"
  convert -sample 195x "$i" "`basename $i .jpg`_preview.jpg"
done
Original snippet written by Chris Johnson
Last updated at 05:57 AM on Dec 12, 2009 by Chris Johnson

SnippetStash costs money to host and develop. The service is free for everyone to use
but if you found it useful please consider making a small donation.