[system] / trunk / webwork / system / scripts / png2eps Repository:
ViewVC logotype

View of /trunk/webwork/system/scripts/png2eps

Parent Directory Parent Directory | Revision Log Revision Log


Revision 260 - (download) (annotate)
Sat Nov 17 17:49:16 2001 UTC (18 years ago) by apizer
File size: 785 byte(s)
fitted comment line

    1 #!/bin/sh
    2 
    3 # This script wraps system-dependant calls to several netpbm utilities.
    4 # In order to use this script, set the NETPBM variable below to the
    5 # directory which contains giftopnm, ppmtopgm, and pnmtops.
    6 
    7 NETPBM=/usr/X11/bin
    8 
    9 # If you wish to set the paths to each utility separately, i.e. if they
   10 # are in different locations, do so below:
   11 
   12 PNGTOPNM=$NETPBM/pngtopnm;
   13 PPMTOPGM=$NETPBM/ppmtopgm;
   14 PNMTOPS=$NETPBM/pnmtops;
   15 
   16 # There should be no need for customization beyond this point.
   17 
   18 umask 022
   19 cat $1 | $PNGTOPNM | $PPMTOPGM | $PNMTOPS -noturn 2>/dev/null > $2
   20 
   21 # CODER NOTE:
   22 # We used to use `pnmdepth 1' instead of ppmtopgm as it creates a
   23 # monochrome image (1 bit) rather than a greyscale image (8 bits).
   24 # However, this was causing improper display of some sort in PDFs.

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9