Geoffrey Lloyd wrote:
> I am having problems with some but not all my eps images.  In some cases
> lyx gives the following in the graphics box
> 
> 'Error converting to loadable format'
> 
> This tends to happen with figures that I have drawn in another package,
> say Illustrator, and then exported as eps.  It doesnt always happen
> though!
> 
> Anyone else had a simialr problem or know a fix

This problem is symptomatic of files that are not conformant to the
PostScript standards. ImageMagick's "convert" utility (which you're
probably using to generate the bitmap file that is displayed on the LyX
screen) tends to barf when it encounters such nastiness. Hence the error
message.

Try using the ps2eps command line utility
http://www.telematik.informatik.uni-karlsruhe.de/~bless/ps2eps.html

It's a perl script, so you'll need to have Perl http://www.perl.org/
installed.

I've found that it sanitises dodgy PS and EPS files well and it has the
added advantage of preserving a vector graphics image as a vector graphics
image, unlike GhostScript's eps2eps and ps2ps utilites which turn your
nice vector graphic into a bitmap.

-- 
Angus

Reply via email to