[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 530 - (download) (annotate)
Wed Sep 4 19:36:01 2002 UTC (10 years, 8 months ago) by apizer
File size: 788 byte(s)
*** empty log message ***

    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/local/bin
    8 
    9 
   10 # If you wish to set the paths to each utility separately, i.e. if they
   11 # are in different locations, do so below:
   12 
   13 PNGTOPNM=$NETPBM/pngtopnm;
   14 PPMTOPGM=$NETPBM/ppmtopgm;
   15 PNMTOPS=$NETPBM/pnmtops;
   16 
   17 # There should be no need for customization beyond this point.
   18 
   19 umask 022
   20 cat $1 | $PNGTOPNM | $PPMTOPGM | $PNMTOPS -noturn 2>/dev/null > $2
   21 
   22 # CODER NOTE:
   23 # We used to use `pnmdepth 1' instead of ppmtopgm as it creates a
   24 # monochrome image (1 bit) rather than a greyscale image (8 bits).
   25 # However, this was causing improper display of some sort in PDFs.

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9