#!/bin/csh -f

echo $1
foreach h ($HOME/public_html/photos/tiffs/*.tiff)
	set t = `basename $h .tiff`
	tifftopnm $HOME/public_html/photos/tiffs/${t}.tiff > $HOME/public_html/photos/tiffs/${t}.pnm
	ppmquant 256 $HOME/public_html/photos/tiffs/${t}.pnm > $HOME/public_html/photos/tiffs/${t}.ppm
	ppmtogif $HOME/public_html/photos/tiffs/${t}.ppm > $HOME/public_html/photos/tiffs/${t}.gif
	\rm $HOME/public_html/photos/tiffs/${t}.tiff $HOME/public_html/photos/tiffs/${t}.pnm $HOME/public_html/photos/tiffs/${t}.ppm
end
