bash image resize for entire folder

Tagged with Bash images

Language: Plain

View as text

for i in toresize/*.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 Johnsonch
Last updated at 17:57 PM on Dec 12, 2008 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.