polyline with stroke line join type round bug

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
nhk15

polyline with stroke line join type round bug

Post by nhk15 »

Hi
I have found a bug in drawing polyline.

If the stroke width is greater than 2 and stroke line join is round, then it draws an extra line segment from the last point to the second point.
Here are the command line to test

working:
convert -size 800x600 xc:white -fill white -draw "stroke black stroke-width 2 stroke-linejoin round polyline 346,239 403,151 518,141 510,213" line.png
bug:
convert -size 800x600 xc:white -fill white -draw "stroke black stroke-width 3 stroke-linejoin round polyline 346,239 403,151 518,141 510,213" line.png

This happens in Imagick as well.
Hope we can resolve this issue.

Cheers,
Nam
Post Reply