Parent Directory
|
Revision Log
This commit was manufactured by cvs2svn to create tag 'rel-2-0-pr5-try2'.
1 #!/bin/sh 2 ################################################################################ 3 # WeBWorK Online Homework Delivery System 4 # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ 5 # $CVSHeader$ 6 # 7 # This program is free software; you can redistribute it and/or modify it under 8 # the terms of either: (a) the GNU General Public License as published by the 9 # Free Software Foundation; either version 2, or (at your option) any later 10 # version, or (b) the "Artistic License" which comes with this package. 11 # 12 # This program is distributed in the hope that it will be useful, but WITHOUT 13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 14 # FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the 15 # Artistic License for more details. 16 ################################################################################ 17 18 # This script wraps system-dependant calls to several netpbm utilities. 19 # In order to use this script, set the NETPBM variable below to the 20 # directory which contains giftopnm, ppmtopgm, and pnmtops. 21 22 NETPBM=/usr/local/bin 23 24 # If you wish to set the paths to each utility separately, i.e. if they 25 # are in different locations, do so below: 26 27 PNGTOPNM=$NETPBM/pngtopnm; 28 PPMTOPGM=$NETPBM/ppmtopgm; 29 PNMTOPS=$NETPBM/pnmtops; 30 31 # There should be no need for customization beyond this point. 32 33 umask 022 34 cat $1 | $PNGTOPNM | $PPMTOPGM | $PNMTOPS -noturn 2>/dev/null > $2 35 36 # CODER NOTE: 37 # We used to use `pnmdepth 1' instead of ppmtopgm as it creates a 38 # monochrome image (1 bit) rather than a greyscale image (8 bits). 39 # However, this was causing improper display of some sort in PDFs.
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |