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

View of /trunk/webwork/system/scripts/gif2eps

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6 - (download) (annotate)
Fri Jun 15 14:29:57 2001 UTC (11 years, 11 months ago) by gage
File size: 1129 byte(s)
development version dev-1-7-01 from /ww/webwork/development 15-June-2001

    1 #!/bin/sh
    2 
    3 
    4 PATH=$PATH:/usr/X11/bin
    5 
    6 ## /usr/X11/bin contains giftopnm, pnmdepth, and pnmtops
    7 
    8 umask 022
    9 # echo $1  "is the path to the gifSourceFile"
   10 # echo $2  "is the path to the eps file which is being created"
   11 
   12 #    cat $1 | giftopnm | pnmdepth 1 | pnmtops -noturn  > $2   
   13 #    cat $1 | giftopnm | pnmdepth 1 | pnmtops -noturn 2>/dev/null > $2   
   14 
   15 # [VS 6/14/00] pnmdepth removed.  this seems to magically fix gif files 
   16 # which were not being displayed properly in pdf hardcopy 
   17 
   18 #    cat $1 | giftopnm  | pnmtops -noturn 2>/dev/null > $2
   19 
   20 
   21 # [VS 6/20/00] added the ppmtopgm stage.  Without pnmdepth, the images were 
   22 # about 8 times the size.  ppmtopgm converts the images to greyscale, which 
   23 # makes them only about twice the size, but still lets them display correctly.
   24 
   25     cat $1 | giftopnm | ppmtopgm | pnmtops -noturn 2>/dev/null > $2
   26 
   27 
   28 #  if there is an  error in running these conversions
   29 #  an error will be signaled and caught by alias
   30 
   31 #  [MEG 9/12/99] as an experiment I'm redirecting the error so that it doesn't wind up
   32 #  cluttering the error log. Hopefully enough errors will come through none the less.

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9