converting SVG file produces empty image

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
compie

converting SVG file produces empty image

Post by compie »

C:\temp>convert saxon.svg saxon.png
convert: Must specify image size `C:/DOCUME~1/user/LOCALS~1/Temp/magick-z_0GG
Ut6'.
convert: missing an image filename `saxon.png'.

C:\temp>convert -size 1000x1000 saxon.svg saxon.png

This works but the png file is completely white!

P.S. I'm using <svg:rect> in the svg file with a height in pixels and a width in %.
P.S.2 The SVG XML file does work in Firefox and IE7 (with Adobe SVG viewer).

ImageMagick-6.3.2-9-Q16-windows-dll.exe
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: converting SVG file produces empty image

Post by magick »

Post a URL to your image so we can download it and reproduce the problem. We will get back to you with a solution.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: converting SVG file produces empty image

Post by magick »

The conversion works for us. We're using ImageMagick 6.3.3 beta but it has no SVG/rendering changes so we're stumped.
compie

Re: converting SVG file produces empty image

Post by compie »

Hmm, that's strange, but maybe some other code changes fixed it?

Could you please verify this:
When you convert the SVG to a BMP with a width of 1000 pixels and a height of 335 pixels, does it look exactly the same as in Firefox?

See: http://www.johanc.nl/dump/firefox.png

P.S. When will the beta version be released?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: converting SVG file produces empty image

Post by anthony »

There is a patch coming out where convert -list format
will list for SVG weather Im has been compiled using the librsvg handling or its internal MVG handling. Which method your IM is using may be critical.

Another way to determine is to try the 'diagonal.svg' (search the forum) and see if you get a diagonal gradient (librsvg) or a vertical gradient (svg2mvg internal conversion). This is because the mvg does not yet have full gradient handling in place yet (current development).
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply