Image magic
From Wasya Wiki
					
										
					
					for i in $(ls *.jpg); do convert -resize 10% $i thumbs_10p/$i; done
 find . -maxdepth 1 -iname '*jpeg' -exec convert -resize 1200x1200 {} {}_thumb.jpg \; ; mkdir thumbs ; mv *thumb.jpg thumbs