"SfR Fresh" - the SfR Freeware/Shareware Archive

Member "tth_exe/ps2gif.bat" of archive tth_exe.zip:


As a special service "SfR Fresh" has tried to format the requested source page into HTML format using (guessed) DOS Batch source code syntax highlighting with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
    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