Bulk Image Resize One-Liner

Have a whole bunch of ultra-high resolution images to upload to your website, but you don't have time to individually scale them to a Web-appropriate size in the GIMP? Imagemagick and bash to the rescue:

for i in `ls *.jpg`; do convert -resize 50% -quality 70 $i scaled/$i; done

…hey presto! That  9½MB file is now 50% smaller (in pixel dimensions) and a mere 750KB (in file size), and the same goes for the other hundred-or-so images in that directory.