On Thursday 04 April 2002 7:00 pm, Mike Ressler wrote:
> On Thu, 4 Apr 2002, Ulrich [iso-8859-15] Günther wrote:
> > Eps figures cannot be shown in 1.2pre1.
> > Every single figure creates an alert once I get on the page with the
> > figure. Afterwards the figs show 'error converting to loadable format'.
> > I am using SuSE 7.3 but not the ghostscript that comes with the
> > distribution, but rather ghostscript-7.04-1 with ghostscript-fonts-6.0-2.
>
> This smells like the bad Imagemagick convert problem to me. In your
> preferences, try the following for the EPS->XPM converter:
>
> convert EPS:$$i PPM:$$i.ppm ; ppmtoxpm $$i.ppm > $$o
>
> It uses Imagemagick convert to go from EPS to PPM, then the netpbm tools
> to go from PPM to XPM. Some versions of convert (like mine in Mandrake
> 8.0) produce bad XPM files.
>
> Mike

Note also that if your xforms library is new enough (0.89.x, x>= about 5), 
then your config.h file in the src directory will have

#define HAVE_FLIMAGE_DUP 1
#define HAVE_FLIMAGE_ENABLE_PS 1
#define HAVE_FLIMAGE_TO_PIXMAP 1

In which case, you'll be using the image loading routines that come with 
xforms rather than the crappy hack I wrote! In which case, you don't need to 
convert to XPM at all; just stop at PPM (and delete all those converters to 
XPM!)

Moreover, if you run lyx -dbg graphics, you'll discover that you can load 
many formats natively and don't need converters at all. Not EPS though.

Angus

Reply via email to