"Fossies" - the Fresh Open Source Software Archive

Member "tth_exe/ps2gif.bat" (1 Mar 2001, 546 Bytes) of package /windows/www/tth_exe.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) MS DOS Batch source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 @echo off
    2 :: ps2gif batch file. Use at your own risk.
    3 :: Requires ghostscript and the netpbm utilities.
    4 if %2.==. goto usage
    5 echo "Calling ghostscript to convert %1 to %2 , please wait ..."
    6 gs -sDEVICE=ppmraw -sOutputFile=- -sNOPAUSE -q %1 -c showpage -c quit | pnmcrop| ppmtogif >%2
    7 if %3.==. goto end
    8 echo "Calling ghostscript to convert %1 to %3 , please wait ..."
    9 gs -sDEVICE=ppmraw -sOutputFile=- -sNOPAUSE -r12 -q %1 -c showpage -c quit | pnmcrop|  ppmtogif >%3
   10 goto end
   11 :usage
   12 echo " Usage: ps2gif <file.ps> <file.gif> [<icon.gif>]"
   13 :end
   14