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