too many bezier coordinates when drawing ellipse

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
helch
Posts: 6
Joined: 2018-03-02T04:33:18-07:00
Authentication code: 1152

too many bezier coordinates when drawing ellipse

Post by helch » 2018-08-28T01:08:23-07:00

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?

User avatar
magick
Site Admin
Posts: 10841
Joined: 2003-05-31T11:32:55-07:00

Re: too many bezier coordinates when drawing ellipse

Post by magick » 2018-08-28T04:52:28-07:00

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.

helch
Posts: 6
Joined: 2018-03-02T04:33:18-07:00
Authentication code: 1152

Re: too many bezier coordinates when drawing ellipse

Post by helch » 2018-08-28T22:24:10-07:00

Thank you!

Post Reply