Convert ps to tiff

Steve Franklin franklin at ug.cs.dal.ca
Wed Aug 10 10:15:58 EDT 1994


Here's pstotiff which does a reasonable conversion job. It converts
to a ppm file, then from ppm to tiff. It requires ghostscript and
the pbmplus utilities.

   Steve Franklin
   franklin at ug.cs.dal.ca

p.s. I can't be sure who to credit with this script. A good guess would be
that it came with the pbmplus utilities, but I'm not positive

#!/bin/sh
#
#
PATH=/local/bin:/usr/bin
export PATH

PROG=`basename $0`

if [ $# -ne 1 ]; then
	echo "usage: $PROG filename.ps"
	exit 1
fi

file=$1
base=`basename $file .ps`

/local/bin/gs -q -dNODISPLAY -dNOPAUSE /local/lib/ghostscript/pstoppm.ps <<EOI
($base) ppm8run
EOI

/local/bin/pnmtotiff $base.ppm 2>/dev/null > $base.tiff

/bin/rm $file.ppm
exit 0



More information about the grass-user mailing list