Mariano Draghi wrote:

> Hi,
> 
> I'm new to the list, and to tell you the truth, almost new to LyX too
> (I've been using it for a month or so).
> I'm having some problem with the ".eps" files.
> The first time I installed LyX, it was version 1.3.1, and I used a rpm
> (I'm running LyX under RedHat Linux 8.0). But then I wanted to try the
> last version, so I get 1.3.2 from source, and compiled it.
> Everything went well... except for the "inserted" images. Whenever I
> insert an image into my document, I got an "Error loading image into
> memory" message, and the image is not displayed.
> The problem doesn't afect the actual "rendering" of the image when I
> generate the DVI or PDF file; It has to do with the "edition" mode.
> 
> Does anybody have a clue of what could be going wrong?
> Thanks for your help!
> 
> Mariano
> Bs.As., Argentina
> 
> PS: Sorry for my English... just in case. ;)

Your English is fine...

LyX uses external programs to convert graphics files (in this case EPS I 
suppose) into a format that the GUI library (Qt or xforms) can load 
natively.

If you run
$ lyx -dbg graphics

you'll get a lot of messages printed to console telling you exactly what LyX 
is doing.

I suspect that you are using the default "convertDefault.sh" script that LyX 
uses when you haven't defined a specific converter yourself. It is just a 
wrapper for Imagemagick's "convert" program. Do you have this installed?

If you do, does it work from the command line.
If you are using the xforms frontend:
$ convert yourfile.eps PPM:yourfile.ppm
If you are using the Qt frontend:
$ convert yourfile.eps PNG:yourfile.png

If that fails, perhaps you should run your eps file through ghostscript's 
eps2eps utility.
$ eps2eps yourfile.eps clean_eps.eps

Alternatively, use another program to convert the file from EPS format. Here 
I use a couple of scripts (attached). Use the Preferences dialog to define 
specific converters from EPS to PNG format etc.

Hope that this helps,
Angus

Attachment: my_ps2png
Description: application/shellscript

Attachment: my_ps2ppm
Description: application/shellscript

Reply via email to