Page 1 of 1

SVG draws circles incorrectly

Posted: 2011-12-13T04:13:21-07:00
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

Re: SVG draws circles incorrectly

Posted: 2011-12-13T05:28:34-07:00
by magick
We can reproduce the problem you posted. We'll need a few days to investigate and come up with a patch. Thanks.