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

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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

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

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post 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.
Post Reply