Page 1 of 1

stroke-linecap round bug with ellipse

Posted: 2015-03-19T05:32:19-07:00
by t9mike
Posted this as follow-up to viewtopic.php?f=3&t=26666. But perhaps it is a different bug. I am keen to know if this can be fixed or if there is a work-around. Thank you.

This script:

Code: Select all

convert -size 220x220 xc: -draw 'fill none stroke-linecap round
    stroke-width 20 stroke red ellipse 110,110 100,100 25,345' test.png
yields broken endcap:
Image
But this:

Code: Select all

convert -size 220x220 xc: -draw 'fill none stroke-linecap round
    stroke-width 20 stroke red ellipse 110,110 100,100 95,345' test.png
is OK:
Image

Mac version info:

Code: Select all

Version: ImageMagick 6.9.0-0 Q16 x86_64 2015-03-16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules
Delegates (built-in): bzlib djvu fftw fontconfig freetype gslib jbig jng jp2 jpeg lcms ltdl lzma openexr png ps tiff webp x xml zlib

Re: stroke-linecap round bug with ellipse

Posted: 2016-06-08T08:07:28-07:00
by mrph
I'm having the same problem and not just with ellipses but with paths as well. Using v6.9.4-5 Q16

Re: stroke-linecap round bug with ellipse

Posted: 2016-06-08T09:33:36-07:00
by mrph
I've posted an issue for this here: https://github.com/ImageMagick/ImageMagick/issues/215

Re: stroke-linecap round bug with ellipse

Posted: 2016-06-14T06:20:09-07:00
by mrph
This has been fixed in v6.9.4-9