#!/bin/sh # thumbnail script. # # usage: thumb.sh picture.jpg # makes 150x150 thumbnail named thumbnail.picture.jpg # # to do thumbnail from all jpegs in current directory: # find ./ -name "*.jpg" -exec thumb.sh {} \; # # (C)opyright 2006 Kahvipannu.Com RY # djpeg $1 | pnmscale -xy 150 150 | cjpeg -smoo 10 -qual 50 >thumbnail.$1