Page 1 of 1

too many bezier coordinates when drawing ellipse

Posted: 2018-08-28T01:08:23-07:00
by helch
I get the following error:

Code: Select all

$ magick --version
Version: ImageMagick 7.0.8-10 Q16 x86_64 2018-08-19 https://www.imagemagick.org
Copyright: © 1999-2018 ImageMagick Studio LLC
License: https://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenCL OpenMP 
Delegates (built-in): bzlib cairo fontconfig freetype gslib heic jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png ps raw rsvg tiff webp wmf x xml zlib

$ magick -size 1120x840 xc:transparent -draw "fill none stroke #f00 stroke-width 4.000000 ellipse 564,600 540,540 0,360" -draw "fill none stroke #e90000 stroke-width 6.000000 ellipse 1588,2140 19452,21496 0,360" ellipse.png
magick: too many bezier coordinates `' @ error/draw.c/DrawImage/3970.
magick: non-conforming drawing primitive definition `ellipse' @ error/draw.c/DrawImage/4307.
The same worked in an earlier imagemagick version:

Code: Select all

$ magick --version
Version: ImageMagick 7.0.7-28 Q16 x86_64 20180324 http://www.imagemagick.org
Copyright: © 1999-2018 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules 
Delegates (built-in): bzlib cairo djvu fftw fontconfig freetype jbig jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png rsvg tiff webp wmf x xml zlib

$ magick -size 1120x840 xc:transparent -draw "fill none stroke #f00 stroke-width 4.000000 ellipse 564,600 540,540 0,360" -draw "fill none stroke #e90000 stroke-width 6.000000 ellipse 1588,2140 19452,21496 0,360" ellipse.png
Result:
Image

Is this a regression or am I doing something wrong?

Re: too many bezier coordinates when drawing ellipse

Posted: 2018-08-28T04:52:28-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.

Re: too many bezier coordinates when drawing ellipse

Posted: 2018-08-28T22:24:10-07:00
by helch
Thank you!