Parent Directory
|
Revision Log
Revision 260 - (view) (download)
| 1 : | sam | 2 | #!/bin/sh |
| 2 : | |||
| 3 : | sh002i | 183 | # 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 : | sam | 2 | |
| 7 : | sh002i | 183 | NETPBM=/usr/X11/bin |
| 8 : | sam | 2 | |
| 9 : | sh002i | 183 | # If you wish to set the paths to each utility separately, i.e. if they |
| 10 : | apizer | 260 | # are in different locations, do so below: |
| 11 : | sam | 2 | |
| 12 : | sh002i | 183 | PNGTOPNM=$NETPBM/pngtopnm; |
| 13 : | PPMTOPGM=$NETPBM/ppmtopgm; | ||
| 14 : | PNMTOPS=$NETPBM/pnmtops; | ||
| 15 : | sam | 2 | |
| 16 : | sh002i | 183 | # There should be no need for customization beyond this point. |
| 17 : | sam | 2 | |
| 18 : | sh002i | 183 | umask 022 |
| 19 : | apizer | 232 | cat $1 | $PNGTOPNM | $PPMTOPGM | $PNMTOPS -noturn 2>/dev/null > $2 |
| 20 : | gage | 6 | |
| 21 : | sh002i | 183 | # 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 |