Page 1 of 1

SVG

Posted: 2011-09-18T07:51:17-07:00
by frm
I've found a bug with SVG files... steps to reproduce:

1) download: http://www.lyx.org/trac/raw-attachment/ ... vg_bug.svg
(this is a valid SVG file which both Inskscape and Firefox correctly display)

2) run

Code: Select all

C:\Users\Francesco\Downloads>convert.exe svg_bug.svg svg_bug.png

C:\Users\Francesco\Downloads>convert.exe --version
Version: ImageMagick 6.7.2-7 2011-09-16 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP
3) the resulting PNG is empty, no error is thrown.

Previously I tried using an older version (6.6.2) and I got the following message when running convert:

Code: Select all

Magick: non-conforming drawing primitive definition `normal'' @ error/draw.c/Dra
wImage/3148.
This is on Windows 7, 64bit using ImageMagick's installer called ImageMagick-6.7.2-7-Q16-windows-dll.exe

Re: SVG

Posted: 2011-09-18T16:47:49-07:00
by anthony
ImageMagick using the RSVG delegate works perfectly find.
For deatils see... SVG Input Drivers: RSVG vs MSVG
http://www.imagemagick.org/Usage/draw/#svg_drivers


But you are right when IM uses the internal MSVG to try and draw it itself it produces a blank PNG image.

I can't however see anything in the SVG image that typically causes a MSVG conversion problem.
Actually even the MVG produced seems to contain everything, so I am not certain why it is blank.

Code: Select all

convert MSVG:svg_bug.svg svg_bug.mvg
As such something is a little wrong. But if you are serious about converting SVG install the RSVG delegate library!

Re: SVG

Posted: 2011-09-23T00:09:15-07:00
by frm
Hi Anthony!
sorry for the delay: somehow I forgot to subscribe my own thread :)

Thanks for testing and for confirming that conversion using the internal MSVG engine fails.
Actually, since this bug I'm reporting is linked to my use of LyX (for more info: http://www.lyx.org/trac/ticket/7657), do you have some workaround which LyX developers could adopt to fix the problem?

Maybe LyX should embed an ImageMagick version which is compiled "with the 'development' support for the RSVG library installed on your machine" ?

Thanks!