#!/bin/csh

set width = $1
shift
set file  = "$*"
echo $file

foreach f ($file)
  giftopnm $f | pnmscale -width $width | \
#  convert -colorspace YIQ -colors 256 - - | \
  ppmtogif > $f:r.small.gif
end

exit 0
