On 18.06.08, TP wrote:
> G. Milde wrote:

> >    The file contains svg format data.
> >    
> >    The image loader can load the following directly:
> >    bmp, gif, ico, jpeg, jpg, mng, pbm, pgm, png, ppm, svg, tif, tiff, xbm,
> >    xpm, Of these, LyX recognises the following formats:
> >    bmp, gif, jpg, jpg, pbm, pgm, png, ppm, svg, tiff, xbm, xpm
> >    
> >    No conversion needed (from == to)!
> >    Loading image.
> >    Image loading succeeded.
> >    graphics::Image::getScaledDimensions()
> >    params.scale       : 100
> >    width              : 744
> >    height             : 1052
> >    LoaderQueue: I'm going to sleep
> > 
> > of course the --export-area-drawing option can not have any effect if
> > there is no export!
> > 
> > My guess is, that svg support in the image loader is new in QT 4.4 and
> > hence this option worked with QT < 4.4.

> I do not know LyX architecture at all. 

Using the debugging feature (starting lyx from a command line (DOS window)
with the -dbg Option) will help to improve the knowledge of what is going on.

> Does it mean that some Qt native function allows to load an image into
> LyX? 

Yes, rendering of the following formats does not need any conversion:

> >    ... LyX recognises the following formats:
> >    bmp, gif, jpg, jpg, pbm, pgm, png, ppm, svg, tiff, xbm, xpm
> >    
> >    No conversion needed (from == to)!

> It is surely the "hidden" converter ..., that does not display
> correctly the arrows in my svg picture.

Actually, it is not a converter but a renderer (like inkview)

> Does it mean that the only chance for me to obtain a correct preview is not
> to define svg format in LyX "file formats".

This would not help, as long as you insert it with the Graphics
dialogue, as SVG is displayed as-is without conversion.

> > It seems like you really have to save your svg clipped to the right size.

> Is it the method indicated in the LyX Wiki (see my first post)? It is a
> bit cumbersome. 

Yes. It only needs to be done one time (and re-done when the size of
the graphic changes) however.

> Perhaps my dirty modification
> of "/lib/scripts/convertDefault.py" is more straightforward?

I don't think so. I'd rather 

* ask the inkscape people for a document option to
  always save with the current drawing size (maybe it already exists), or
  
* search for (or write) a script that converts my svg files into
  correctly clipped ones, or
  
* use the external inset to define a SVG->EPS or SVG->PDF conversion
  (with --export-area-drawing) as pre-processing step and set
  Display=Graphic.  
  
Günter  
  

Reply via email to