Fernando,

Fernando Roig wrote:
Hi Paul:

Thanks for the message.

1. Apparently, ImageMagick is correctly configured on LyX path prefix. The entry is:

C:\Arquivos de programas\ImageMagick-6.3.3-Q16;

which is the directory where convert.exe is found.

Ok.

2. From the command prompt, I make

convert figure1.ps figure1.png

This conversion works ok, and I am able to include the resulting .png image as a graphic in LyX, and it is properly shown.

However, if I make

convert figure1.ps figure1.ppm

the conversion does not work properly. It generates a bad .ppm file, that I cannot open with the GIMP (although I am able to include it as a graphic and to see it in LyX).

I don't understand this. You're saying that LyX will display the PPM file properly (if you include it directly in the document) but GIMP thinks the file is bad?

Do you have problems converting non-Adobe formats (e.g., figure1.jpg) to PPM? The reason I ask is that ImageMagick relies on Ghostscript when converting Postscript and Encapsulated Postscript to other formats. So if the problem is only with PS/EPS and not with JPG/PNG/..., then the place to look is your Ghostscript installation.

Meanwhile, I'm not sure any of this explains your problem entirely, particularly since you indicated conversion to PPM (the format LyX uses for internal display) failed for all sorts of image types. You might try the following. Open a DOS window and cd to the LyX bin directory. Run 'lyxc -dbg graphics' there. (Note that it's lyxc, not lyx.) Start a new document. The DOS window will have all sorts of progress messages from LyX that we don't care about; make a note where they end. Now insert an image with the option to display in LyX turned on. More messages will spew into the DOS window. Copy the ones that came after you inserted the image and mail them to the list; maybe they'll tell us where the script is failing.

/Paul

Reply via email to