On Friday 12 July 2002 6:07 am, Garst R. Reese wrote: > Angus Leeming wrote: > > Well then, don't use convert, use gs. > > > > Use this as a converter from /any/ PostScript type file to ppm format: > > > > gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pnm -sOutputFile=$$o $$i > > > > In addition, you should comment out the lines 422-426 in xformsImage.C > > #ifdef HAVE_FLIMAGE_ENABLE_PS > > // xforms recognises PS but not EPS > > flimage_enable_ps(); > > #endif > > > > If you're using xforms 0.88, you'll need to define also a converter from > > ppm to xpm. I'd recommend ppmtoxpm. > > > > I think that this is probably the way to go anyway, as it'll let gs deal > > with "nasty" PostScript files and not us. > > > > Try it out and let us know. > > > > Angus > > I'm using xforms-1.0rc4 with 1.2.x CVS > I made the above changes in preferences for Postscript->PPM, and > commented out the code in xformsGImage.C. No affect.
Rubbish. Huge effect. You can now load /any/ PostScript file by defining converters ps->ppm, eps->ppm, epsi->ppm, epsf->ppm and using the above gs command to perform the conversion and they'll /all/ work. If the quality of the conversion is crap you can now state definitively that the original file is crap. > But I don't understand how it should get from pnm to xpm. Why would you want to? xforms can load PPM direct.