SVG draws circles incorrectly

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
nniico
Posts: 6
Joined: 2011-02-08T08:15:21-07:00
Authentication code: 8675308

SVG draws circles incorrectly

Post by nniico »

Well, not circles, but ellipses drawn using a path.

Test case :
  • open inkscape
  • draw a circle/ellipse
  • save to circle.svg
  • converts to png (using MSVG)
Expected result : original ellipse
Result : truncated (half) ellipse

rsvg-convert renders the original (full) ellipse

Code: Select all

<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" version="1.1" >
    <path style="fill:none;stroke:#000000" d="M10,5 a4,4,0,1,1,-6,6,4,4,0,1,1,6,-6z" />
</svg>

Code: Select all

$ convert -size 20x20 xc:none -fill none -stroke black -draw "path 'M10,5 a4,4,0,1,1,-6,6,4,4,0,1,1,6,-6z '" circle.png
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: SVG draws circles incorrectly

Post by magick »

We can reproduce the problem you posted. We'll need a few days to investigate and come up with a patch. Thanks.
Post Reply