too many bezier coordinates - regression?

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

too many bezier coordinates - regression?

Post by helch »

Hi

I have an mvg that worked in IM 7.0.7-28 and fails in IM 7.0.7-29 and IM 7.0.7-33 with the following error:

Code: Select all

$ wget http://test.twin.search.ch/test.mvg -q
$ magick -script test.mvg  > test.png
magick: too many bezier coordinates `M 179.037813,-12.984063 L 177.218125,-9.915000 L 176.763750,-9.147813 L 176.548438,-8.829688 L 176.478125,-8.646563 L 178.337500,-7.640625 L 181.006875,-6.058438 L 181.393750,-5.824375 L 182.263750,-5.253438 L 183.856875,-4.241875 L 185.176250,-3.404688 L 191.363125,-0.264375 L 192.166250,0.201562 L 192.392500,0.078125 L 192.581562,0.019375 L 192.802812,-0.071563 L 193.110312,-0.211875 L 193.330625,-0.359063 L 193.410625,-0.088438 L 193.535000,0.253750 L 193.585938,0.412812 L 193.637188,0.572187 L 193.788750,0.899688 L 193.883438,1.104375 L 194.136562,1.716562 L 194.492500,2.703125 L 194.861875,3.608750 L 195.020937,4.029688 L 195.260000,4.661875 L 195.740625,5.879063 L 196.072812,6.745000 L 196.755000,6.429063 L 197.152187,6.282500 L 197.715937,7.710000 L 198.181250,8.974063 L 198.944375,8.728125 L 200.057500,8.382188 L 201.328438,7.870000 L 202.552813,7.475625 L 202.996875,7.305000 L 203.571250,7.112813 L 204.440313,6.824688 L 204.920625,6.611250 L 205.430625,6.460313 L 205.495312,6.441875 L 205.992500,6.551250 L 206.066875,6.577188 L 206.178750,6.630313 L 206.813438,6.646250 L 207.942813,5.896875 L 208.322188,5.512813 L 208.810000,4.820000 L 208.996250,4.367813 L 209.212813,3.796875 L 209.540000,3.106250 L 209.725937,2.654375 L 210.017812,1.727500 L 210.338750,0.611563 L 210.645313,-0.409687 L 211.016875,-1.337812 L 211.707813,-1.850312 L 212.517188,-1.953750 L 213.049375,-1.823437 L 213.102500,-2.467812 L 212.464062,-3.492500 L 212.678125,-3.771562 L 213.491562,-3.599375 L 214.123437,-3.608437 L 214.536250,-3.614375 L 215.335312,-3.350000 L 216.428125,-3.274062 L 217.600312,-3.084063 L 218.907187,-2.717813 L 219.330000,-2.913438 L 219.921562,-3.187500 L 220.938125,-3.994375 L 222.089375,-5.272500 L 222.634375,-6.079687 L 222.760000,-3.920000 L 222.753125,-2.603125 L 222.749687,-1.689062 L 222.741250,-0.000312 L 222.659687,1.050313 L 222.393750,2.225313 L 222.254062,3.169063 L 222.249687,4.183750 L 222.431562,5.170313 L 222.444375,5.730625 L 222.440937,6.477813 L 222.426562,7.430000 L 222.564375,8.977813 L 222.898750,9.925313 L 223.301875,10.398750 L 223.500000,11.209063 L 223.495312,12.359375 L 223.624062,13.438125 L 223.687187,14.521563 L 223.751250,15.531563 L 223.475625,16.543438 L 223.075937,17.449063 L 222.940312,17.759063 L 222.792812,18.096250 L 222.114375,18.971250 L 221.029063,20.248125 L 221.227500,20.766563 L 221.345313,21.074063 L 221.739375,22.062188 L 222.021563,22.473125 L 222.111875,22.684063 L 222.173438,22.796563 L 222.085312,22.873125 L 222.063438,22.938437 L 222.273125,23.030625 L 222.248125,23.535625 L 222.210000,23.882812 L 222.876875,24.169687 L 225.237500,24.911250 L 229.330625,26.144688 L 230.033437,26.391562 L 231.407812,26.895625 L 232.752187,27.322500 L 234.422500,27.840000 L 235.507500,28.200937 L 236.098750,28.403125 L 238.548125,29.203437 L 238.595000,29.218750 L 238.654062,29.206562 L 238.684062,29.254375 L 238.735000,29.278125 L 238.822500,29.318750 L 238.905625,29.302500 L 238.940937,29.361562 L 238.964687,29.374062 L 241.278750,30.156250 L 243.355625,30.796562 L 245.719688,31.557187 L 248.750313,32.535625 L 251.300000,33.305312 L 253.640938,34.089375 L 255.246563,34.679375 L 256.819687,35.291562 L 257.205937,35.442187 L 257.488438,35.568750 L 258.419375,35.987187 L 259.524375,36.374062 L 260.171875,36.600937 L 261.925000,37.280625 L 264.084062,37.492187 L 265.230000,37.767187 L 266.013437,37.936250 L 266.309375,38.015312 L 267.456250,38.043750 L 268.524062,38.316250 L 269.073437,38.454375 L 271.636250,39.003750 L 274.536562,39.555312 L 275.471562,39.770937 L 276.020625,39.898125 L 277.435625,40.172812 L 278.447500,40.651250 L 278.504688,40.654688 L 279.200625,40.695625 L 279.641250,40.745000 L 279.619375,41.006562 L 279.621563,41.138750 L 279.625313,41.294375 L 279.468750,41.697813 L 278.384375,41.523750 L 278.033125,41.497188 L 276.955000,41.270625 L 276.150313,41.134687 L 275.608750,42.314062 L 275.329688,43.272187 L 274.578438,45.430625 L 274.204688,46.329062 L 274.105000,46.615625 L 273.887500,47.063437 L 273.621250,47.720625 L 272.598438,50.349062 .
magick: non-conforming drawing primitive definition `path' @ error/draw.c/DrawImage/4205.

$ magick -version
Version: ImageMagick 7.0.7-29 Q16 x86_64 20180430 https://www.imagemagick.org
Copyright: © 1999-2018 ImageMagick Studio LLC
License: https://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
Is this a regression or some new limitation?
And if its a limitation, how can I increase the limit?

Successful result should look like this:
Image

Thanks in advance

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

Re: too many bezier coordinates - regression?

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 within a few days.
helch
Posts: 7
Joined: 2018-03-02T04:33:18-07:00
Authentication code: 1152

Re: too many bezier coordinates - regression?

Post by helch »

Thank you very much for the fast response and fix!
Post Reply