#!/bin/sh # # usage : jpgprocess jpgfile # # Process a Sanyo jpg file # # Mark Dobie 1997 # # convert the filename to something unique PICNUM=`jpgpicnum $1` NEWNAME=`printf %06d $PICNUM`.jpg # rename the file echo "renaming $1 to $NEWNAME" mv $1 $NEWNAME # convert animations to gifs if [ `jpgpicframes $NEWNAME` != "0" ] ; then echo "creating animated gif from $NEWNAME" jpgtogifanim $NEWNAME > `basename $NEWNAME .jpg`.gif fi