Page 1 of 1
convert svg2png on windows
Posted: 2008-09-18T17:57:41-07:00
by marcusx
Hi everyone!
I am absolutly new to IM and whant to convert a svg file to an png or jpg but I get this error:
Non-conforming drawing primitive definition `1.'
Code: Select all
convert -size 100x100 text.svg test.png
Does this mean that the svg file is not valid? Will I have to install some additional modules? I found something that this is neccesarry but there are only some linux sources. Will I need somthing additional for the windows version, too?
Thanks for your help!
regards marcus
Re: convert svg2png on windows
Posted: 2008-09-18T18:47:57-07:00
by fmw42
I am no expert on the use of SVG, but I think its file should have a definition within it to say how big to make the image. So remove the -size 100x100 as that usually needs to be followed by xc:"some color"
convert text.svg test.png
Re: convert svg2png on windows
Posted: 2008-09-19T00:35:20-07:00
by marcusx
that was my first try, but I got a message that I have to provide a size
Re: convert svg2png on windows
Posted: 2008-09-21T17:25:13-07:00
by anthony
Without seeing the offending SVG image is it imposible to say what is the problem.
There was a probelm with SVG dicivered recently in that some SVG were not parsed correctly in determining the output width and height. Those values is specified in an initial <svg ...> tag in the SVG image. The new IM point release just release will have that problem fixed, if it is that problem.
Note that there are two SVG convertsion methods available. The built-in (and incomplete) MSVG method, and the RSVG whcih calls an external RSVG library to render the SVG image as a raster. Most likely you are using the former.
You can find out by checking the output of
and looking for rsvg on the "DELEGATES" line.
For more information see
http://www.imagemagick.org/Usage/draw/#svg