Martijn Brouwer wrote:
>> Search for the file "convertDefault.sh" and change the line
>>
>> convert -depth 8 $1 $2
>>
>> to
>>
>> convert $1 $2
> 
> Thanks for your suggestion, but when I do this, I get "error converting
> images" for every picture.

Nonetheless, Uwe has highlighted your problem. "converters" in lyx are
pluggable components. See the Edit->Preferences dialog and the
"Converters" pane therein.

So, devise a converter from EPS to PNG and LyX will use that in place of
the fallback "convertDefault.sh".

One solution might be to use gs itself to define your converter. See the
my_ps2png converter that I posted in the "Gnuplot & -90 rotation" thread.
If you're sure that your EPS files are conformant, then you might be able
to define your converter as simply

gs -q -dSAFER -dBATCH -dNOPAUSE -sDEVICE=png16m -sOutputFile=$$o $$i

But see the comments about "gs is extremely fussy about the EPS files it
converts".

Also note that my solution to that problem, "eps2eps", is extremely crude,
converting any vector graphics in the eps file to bitmaps. You might use
"ps2eps" instead.

But the bottom line is, does any of this really matter? The on-screen view
in lyx is enough to remind you of what the image is and the on-paper
output is excellent, no?

-- 
Angus

Reply via email to