On Friday 01 February 2002 12:50 pm, Herbert Voss wrote: > Angus Leeming wrote: > > > On Friday 01 February 2002 12:09 pm, Herbert Voss wrote: > > > >>Angus Leeming wrote: > >> > >> > >>>Alternatively, and probably faster, use the netpbm suite of converters. > >>> > >>but there is no epstoxpm or pstoxpm. Do you use > >>epstogif->giftoxpm or another? > >> > > > > Well, I use a suitable combination of: > > > > pstopnm > > pnmcrop > > pnmscale > > pnmrotate > > ppmtoxpm > > > > Even with 4 temporary files this is much quicker than convert. > > > sounds good. Can you send your converter entries to the list, > > maybe interesting for others. > > Does it makes sense to use the crop, scale and rotate > for the LyX view of images, than I will give it a try? > If you are still working on this topic, let me know, > than I'll take a ride with my bike ... > spring is coming in Berlin! > > Herbert
I think I'll have a go. You must have been sat at the computer for far too long these past few days. Go for that ride! Actually, this is how I envisage splitting up the task: Getting the InsetGraphicsParams into InsetGraphics --- done. A few tweeks left. Passing a subset of the InsetGraphicsParams, GraphicsParams to the GraphicsCache --- done here. Modifying the GraphicsCache to delete/add GraphicsCacheItems based on a comparison of GraphicsParams rather than the file name --- doing. Pass the GraphicsParams from the GraphicsCacheItem to the ImageLoader. Create hooks to call either ImageLoaderXPM or ImageLoaderXforms. Ignore ImageLoaderXforms for the time being. ImageLoaderXPM: convert from input format to crop,scale,rotate format crop,scale,rotate convert to XPM So, I need to define some more LyXRC variables: graphics_crop_format graphics_crop_command etc I think that that does it. Angus