Page 1 of 1

error in -draw "polyline ..." function

Posted: 2013-02-01T10:03:16-07:00
by ringostarr
Hi guys,

I found a bug in the -draw "polyline..." function.

Example:

Code: Select all

convert -size 640x480 xc:white -stroke black -strokewidth 10 -fill transparent -draw "polyline 582,114 582,115 580,118" polyline_error.jpeg
Has anybody an idea or workaround?

Re: error in -draw "polyline ..." function

Posted: 2013-02-01T10:19:56-07:00
by snibgo
What do you think it is doing wrong?

It's also helpful if you state your platform and IM version.

Re: error in -draw "polyline ..." function

Posted: 2013-02-01T12:02:54-07:00
by fmw42
An example of your "bad" results might be useful also. Post it on some free image hosting service and put a link to it here.

Re: error in -draw "polyline ..." function

Posted: 2013-02-01T15:22:02-07:00
by ringostarr
Sorry, but I'm a little bit confused now.

I've tried this command on my computer at work with Ubuntu 12.10 and ImageMagick version 6.8.0-4.
Now I've tried it again at my home computer with Ubuntu 12.10 and the same ImageMagick version and the image is ok.

On monday I can post the bad image here.

Re: error in -draw "polyline ..." function

Posted: 2013-02-04T02:57:48-07:00
by ringostarr
Hallo again,

I found out, that I've got a self-compiled ImageMagick version at home, because the original version on Ubuntu 12.10 is 6.7.7.
I've compiled the newest ImageMagick version 6.8.2-3 on my work computer and the image looks good.

For the sake of completeness I post the bad image:
Image

Re: error in -draw "polyline ..." function

Posted: 2013-02-28T19:13:12-07:00
by anthony
polyline has other problems which had been reported a long time ago.

http://www.imagemagick.org/Usage/bugs/testing/#polyline