#!/bin/csh -f

set wrkdir = $1
set imageFile = $2
set outfile = $3
set diagrootpath = $4

set i = /$wrkdir/$imageFile

convert -trim -bordercolor white -border 5x5 -density 85 $i $i.gif
/$diagrootpath/tool_lib/rename.pl '.ps' '' $i.gif

printf "Complete"  > $outfile

