-draw rectangle

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

-draw rectangle

Post by snibgo »

IM will successfully draw a rectangle with either width=1 or height=1, but draws nothing when both width and height are 1.

Sample code:

Code: Select all

convert -size 5x5 gradient: -draw "fill red rectangle 1,1 1,3" d1.png
convert -size 5x5 gradient: -draw "fill red rectangle 1,1 3,1" d2.png
convert -size 5x5 gradient: -draw "fill red rectangle 1,1 1,1" d3.png
IM v6.8.8-0 on Windows 8.1.
snibgo's IM pages: im.snibgo.com
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: -draw rectangle

Post by dlemstra »

This issue will be fixed in the next release of ImageMagick (6.9.1-3)
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
Post Reply