Thumbnail with imagemagick

  1. for i in *.tif;
  2. do convert blank320x240.png $i -auto-orient -resize 320x240 \
  3. -colorspace RGB -compose Src -gravity center -composite $i.jpg;
  4. done