Page 1 of 1

SVG Marker is not converted to PNG

Posted: 2017-07-27T03:57:57-07:00
by daluela
Hello,

I'm trying to convert a SVG to a PNG. Nearly everything works fine, but the Marker ist missing.

SVG:

Code: Select all

<defs>
	<marker viewBox="0 0 6 6" markerWidth="6" markerHeight="6" orient="auto" refX="1" refY="3" id="markerSj5madk1z3">
		<polygon points="0,6,6,6,3,0,0,6" fill="#000000" transform="matrix(0,1,-1,0,6,0)" style=""></polygon>
	</marker>
</defs>
<line x1="610" x2="800" y1="800" y2="800" stroke="#000000" id="line" style="stroke-width: 3; marker-end: url(&quot;#markerSj5madk1z3&quot;);"></line>
Command line:

Code: Select all

convert -background none temp.svg -resize 900x900 svg.png
I can't find a solution, would be nice if someone could help me.
Cheers daluela

Re: SVG Marker is not converted to PNG

Posted: 2017-07-27T05:00:29-07:00
by snibgo
Please tell us what version of IM you use, on what platform.

Do you use Inkscape as the SVG rasteriser? Or RSVG? Or MSVG? "-verbose", and "-list format" will tell you. Inkscape renders markers. MSVG doesn't.

SVG files must be complete. Rasterisers will object to SVG fragments. This means we cannot test your code.