Re: ps to gif
Brandon Mitchell <bhmit1@mail.wm.edu> writes:
> Hi everyone,
>
> Is there a way to convert ps (or any possible output from gnuplot) to a
> gif (or even a jpeg). This needs to be done in a script, so command line
> programs only.
>
> TIA,
> Brandon
I saw a script to do this a while back - the main thing was:
gs -q -sDEVICE=ppmraw -sOutputFile=- infile.ps | ppmtogif > outfile.gif
There may have been other options on gs - check places where people
have gs acting as a filter for lpr and steal the options. The
ppmtogif program is in the netpbm package. (which is, due to some
unfortunate actions by Unisys, in non-free) If you have more than one
page on your ps file this won't quite work - but you can still create
a script that ends up with several gifs in /tmp using something like:
gs -q -sDEVICE=ppmraw -sOutputFile='/tmp/page%d.ppm' infile.ps
for i in /tmp/page*.ppm; do
ppmtogif $i > /tmp/`basename $i .ppm`.gif
done
Check both the gs and ppmtogif manpages for more info.
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to:
- References:
- ps to gif
- From: Brandon Mitchell <bhmit1@mail.wm.edu>