SVG

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
frm
Posts: 2
Joined: 2011-09-18T07:45:12-07:00
Authentication code: 8675308

SVG

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: SVG

Post 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!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
frm
Posts: 2
Joined: 2011-09-18T07:45:12-07:00
Authentication code: 8675308

Re: SVG

Post 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!
Post Reply