Omitted elliptical arc commands not working
Posted: 2009-08-07T16:05:55-07:00
This is ImageMagick 6.5.4-8 on Ubuntu.
I'm trying to reproduce this SVG example (http://www.w3.org/TR/SVG11/painting.html#FillProperties) using MagickWand
Using the MagickWand drawing API I created this MVG file:
I use this command to render it:
Here's the output:
I see that MagickWand has omitted the A when the 2nd A immediately follows an A. I understand that this is permitted by the SVG standard.
If I manually edit the MVG file to add the omitted A's, however, the result is correct.
I'm trying to reproduce this SVG example (http://www.w3.org/TR/SVG11/painting.html#FillProperties) using MagickWand
Using the MagickWand drawing API I created this MVG file:
Code: Select all
push graphic-context
scale 0.355,0.355
push graphic-context
fill-rule 'NonZero'
stroke-width 3
stroke '#000000000000'
fill '#FFFF00000000'
path 'M600,81A107,107 0 0 1 600,295 107,107 0 0 1 600,81ZM600,139A49,49 0 0 1 600,237 49,49 0 0 1 600,139Z'
pop graphic-context
pop graphic-context
Code: Select all
convert -size 426x142 test.mvg test.png
I see that MagickWand has omitted the A when the 2nd A immediately follows an A. I understand that this is permitted by the SVG standard.
If I manually edit the MVG file to add the omitted A's, however, the result is correct.
Code: Select all
path 'M600,81A107,107 0 0 1 600,295 A107,107 0 0 1 600,81ZM600,139A49,49 0 0 1 600,237 A49,49 0 0 1 600,139Z'