On Tuesday 18 June 2002 8:28 pm, Herbert Voss wrote: > Angus Leeming wrote: > > All this special casing makes me very uneasy. > > > > Why don't we just use gs to convert any postscript file to png format > > (noting that the home-grown loader will be thrown away once xforms 1.0 is > > released) > > there are two different things: > a) detect an epsi-file, which doesn't works yet > > b) convert it to ... > > the first is really missing, the second > > > something like > > > > gs -q -dNOPAUSE -dBATCH -sDEVICE=png16m -sOutputFile=tmp.png > > > > should do it, no? > > try it ...
This works perfectly gs -q -dNOPAUSE -dBATCH -sDEVICE=pswrite -sOutputFile=tmp.ps pendula.epsi It also takes 0.28secs which is a considerable improvement over convert... For some reason I can't get it to generate a png file, but running all ps files through gs first seems like a good idea to me. Angus