This is the code I wrote some time ago to generate thumbnails for my static sites following Google recommendations. Full sized photos are 1200x800 and the miniatures are shown at 300x200, so I generate double sized thumbnails to be zoom-friendly as Jason recommends:
#!/bin/sh
cd /image/directory
for i in `find . -name "*jpg"`;
do
echo $i;
convert -resize 600x400 -sampling-factor 4:2:0 -strip -quality 80 -interlace JPEG -colorspace RGB $i -set filename:new '%t_thumb' %[filename:new].jpg;
done
This is the robots.txt entry to avoid getting the thumbnails indexed in Google:
User-agent: Googlebot-Image
Disallow: /images/*_thumb.jpg$