On Tue, Feb 18, 2003 at 12:36:35PM +0000, Angus Leeming wrote: > > -- First of all, how does the conversion/display process really > > works? Specially, how EPS files are handled? (I understand that > > they are always converted to ppm for displaying? Why ppm?) > > If you run > $ lyx -dbg graphics > you'll see that the conversion is handled by an external program. You can > specify the program you use by defining formats and converters between > formats. See the Edit->Preferences dialog. > > By default, we use ImageMagick's 'convert' program, run through a script > convertDefault.sh. I too find that 'convert' is very slow. (But this > shouldn't really matter. See above.) > > I attach a modified convertDefault.sh that uses ghostscript to convert eps > files to either ppm or png format. Personally, I would use it as the basis > for a my_ps2ppm or my_ps2png converter...
This is still bad. We should modify convertDefault.sh to work as a filter, namely 'convertDefault.sh file.eps' should write its output to stdout and not to the disk. In LyX, the necessary modification is to create a pipe when calling to convertDefault.sh. This will be much faster than the current method.