On Sat, Apr 16, 2016 at 04:33:10PM +0100, Guillaume Munch wrote: > Le 15/04/2016 09:12, Scott Kostyshak a écrit : > > On Fri, Apr 15, 2016 at 01:53:03AM +0200, Shankar Giri Venkita Giri wrote: > > > I tried to incluide an SVG graphic in a LyX file and it appears > > > horribly corrupted (black triangles everywhere in the image > > > boundary). PDF output is fine. LyX 2.1 did not have this issue and > > > SVG looks correct. > > > > I think this is: > > http://www.lyx.org/trac/ticket/9778 > > > > Your SVG file is probably not "SVG 1.2 Tiny". > > > > We don't currently have a fix in mind. The only possible fix now would > > be to not use Qt to do the conversion. > > > > I have been having the same issues. The svg preview in lyx is very far > from what it looks like in the PDF (even unrecognisable). The debug > output shows that it is rendered directly by qt without conversion (from > what I understood from the ticket). Moreover there is not improvement by > switching to qt5 (5.4.1). > > It would make sense to preview using the same converter as is used to > generate the pdf. Georg wrote "If the Qt implementation of SVG rendering > is really that limited, then it would be easy to switch it off in LyX". > I am willing to test such a patch.
Using the same converter would make sense (I wonder where else we use different converters?). This issue seems to come up often, and it doesn't appear that Qt intends to change anything. If we do use the same converter, does that mean we only need to convert the SVG once? That would be another nice reason to do that, but I'm not sure if that is indeed true. However I suppose the conversion is so quick it doesn't make a difference since the relevant timing comparison is compiling a .tex file. Scott
signature.asc
Description: PGP signature
