" >> thumb.html
fi
echo " " >> thumb.html
echo " " >> thumb.html
echo " ${FILE}.${EXTENSION} " >> thumb.html
echo " ${FILESIZE}K" >> thumb.html
fi
count=`expr ${count} + 1`
}
DoJpeg()
{
if [ $VERBOSE ] ; then
echo "INPUT FILE: ${FILE}.${EXTENSION}"
(djpeg -verbose -colors 256 -fast "${FILE}.${EXTENSION}" | pnmscale -xysize 100 100 | ppmquant 256 | cjpeg -verbose > "${FILE}_thumb.jpg") || (echo "OOPS: cleaning up" ; rm "${FILE}_thumb.jpg")
echo "OUTPUT FILE: \"${FILE}_thumb.jpg\""
else
(djpeg -colors 256 -fast "${FILE}.${EXTENSION}" | pnmscale -xysize 100 100 | ppmquant 256 | cjpeg > "${FILE}_thumb.jpg") > /dev/null 2>&1 || (echo "OOPS: cleaning up, use -v for more info" ; rm "${FILE}_thumb.jpg")
fi
if [ "${count}" = "4" ] ; then # how many pics in a row
count=0
fi
if [ $HTML ] ; then
FILESIZE=`ls -ks "${FILE}.${EXTENSION}" | awk '{print $1}'` >> thumb.html
if [ "${count}" = "0" ] ; then
echo " |