Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # ps2jpg,v 1.0 2002/12/04 16:09:22
- # Convert PostScript file to Jpeg Image. Usage:
- # ps2jpg [infile.ps [outfile.txt]]
- # If outfile is omitted, output file will be named infile.ps.jpg
- #
- OPTIONS=" -q -dBATCH -dNOPAUSE "
- DEVICE=" -sDEVICE=jpeg "
- if ( test $# -eq 0 ) then
- echo Usage: ps2jpg [infile.ps [outfile.jpg]]
- echo If outfile is omitted, output file will be named infile.ps.jpg
- elif ( test $# -eq 1 ) then
- OUTPUT=" -sOutputFile=$1.jpg "
- /opt/bin/gs $OPTIONS $DEVICE $OUTPUT "$1" -c quit
- else
- OUTPUT=" -sOutputFile=$2 "
- /opt/bin/gs $OPTIONS $DEVICE $OUTPUT "$1" -c quit
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement