SVG Marker is not converted to PNG

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
daluela
Posts: 1
Joined: 2017-07-27T03:52:27-07:00
Authentication code: 1151

SVG Marker is not converted to PNG

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: SVG Marker is not converted to PNG

Post 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.
snibgo's IM pages: im.snibgo.com
Post Reply