error in -draw "polyline ..." function

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
ringostarr
Posts: 3
Joined: 2013-02-01T09:55:38-07:00
Authentication code: 6789

error in -draw "polyline ..." function

Post 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?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post by snibgo »

What do you think it is doing wrong?

It's also helpful if you state your platform and IM version.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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.
ringostarr
Posts: 3
Joined: 2013-02-01T09:55:38-07:00
Authentication code: 6789

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

Post 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.
ringostarr
Posts: 3
Joined: 2013-02-01T09:55:38-07:00
Authentication code: 6789

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

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

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

Post by anthony »

polyline has other problems which had been reported a long time ago.

http://www.imagemagick.org/Usage/bugs/testing/#polyline
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply