Page 1 of 1

converting SVG file produces empty image

Posted: 2007-02-27T04:12:10-07:00
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

Re: converting SVG file produces empty image

Posted: 2007-02-27T09:16:00-07:00
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.

Re: converting SVG file produces empty image

Posted: 2007-03-01T01:35:49-07:00
by compie

Re: converting SVG file produces empty image

Posted: 2007-03-01T10:45:54-07:00
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.

Re: converting SVG file produces empty image

Posted: 2007-03-02T01:40:49-07:00
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?

Re: converting SVG file produces empty image

Posted: 2007-03-07T23:56:16-07:00
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).