Page 1 of 1

VERY OLD BUG -- extra stroke on MVG with thick lines and round caps.

Posted: 2016-12-13T18:43:26-07:00
by anthony
Polyline goes wrong on thick strokes and round linejoins

With a stroke of 2 this is fine.

Code: Select all

  convert -size 80x60 xc:white -fill white -colorspace RGB \
          -draw "stroke black stroke-width 2 stroke-linejoin round \
                 polyline 14,53 30,5 71,14 51,41" \
          -colorspace sRGB draw_line2.png
Image

But with a stroke of 3 it goes wrong.

Code: Select all

  convert -size 80x60 xc:white -fill white -colorspace RGB \
          -draw "stroke black stroke-width 3 stroke-linejoin round \
                 polyline 14,53 30,5 71,14 51,41" \
          -colorspace sRGB draw_line3.png
Image

But without the stroke-linejoin round it works correctly again!

Code: Select all

  convert -size 80x60 xc:white -fill white -colorspace RGB \
          -draw "stroke black stroke-width 3 \
                 polyline 14,53 30,5 71,14 51,41" \
          -colorspace sRGB draw_line3_2.png
Image

Last image will appear when IM Examples updates.

Re: VERY OLD BUG -- extra stroke on MVG with thick lines and round caps.

Posted: 2016-12-15T09:37:12-07:00
by magick
Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ http://www.imagemagick.org/download/beta/ by sometime tomorrow.