W2H: troubleshooting tips for PS to GIF conversion
Here is a description how you can redo in a shell the
conversion steps W2H is doing:
- create a postscript file:
- GCG environment:
start a shell with a GCG session
% postscript ColorScript-100 out.ps
% plottest -default
Now you should have a color postscript file
(out.ps).
- EMBOSS environment:
create a postscript (PS) output with an EMBOSS application
(e.g. plotorf -graph=ps -goutfile=out)
Now you should have a postscript file
(out.ps).
- % which gs
Is this the same gs you're using for W2H
($PATH variable)?
- % gs -q -sDEVICE=ppmraw -r100 -dNOPAUSE -sOutputFile=- - < out.ps > out.ppm
This converts the postscript file into a 100 DPI
PPM file.
- Display this PPM file, using a viewer like:
% xv out.ppm
or
% display out.ppm
- % which convert
Is this the same convert you've
configured in W2H's Cfg.pl ($PSCONVERT)?
- % convert -rotate 270 PPM:- GIF:- < out.ppm > out.gif
This converts the PPM file into a GIF file.
- Display this GIF file, using a viewer like:
% xv out.gif
- And now do the 2 conversion steps in one go:
% convert -rotate 270 -density 100 PS:- GIF:- < out.ps > out2.gif
This converts the PS file via a
temporary PPM file into a GIF file.
- Display this GIF file, using a viewer like:
% xv out2.gif