Page 1 of 1

Single line rectangles not working

Posted: 2019-05-18T06:21:33-07:00
by jflanagan
It appears that single line rectangles do not work any more. Is this intentional? What I mean by single line is that it has a single pixel width - the x coordinate is the same for the start and end.

For example, in version 6.9.6-2 Q16 this command used to generate a single 1 pixel wide line, 8 pixels long :

Code: Select all

convert -size 10x10 canvas:white -stroke black -strokewidth 1 -fill blue -draw "rectangle 1,1 1,8" oneline.bmp
In version 6.9.10-6 Q16, that same command generates an all white image with no lines.

If I change the endpoint for a single pixel wider, it generates a line that is 2 pixels wide and 8 pixels long, as expected:

Code: Select all

convert -size 10x10 canvas:white -stroke black -strokewidth 1 -fill blue -draw "rectangle 1,1 2,8" oneline.bmp
It appears that you can no longer generate a 1 pixel wide line using the rectangle command.

Can you confirm if this is intentional or a bug?

Re: Single line rectangles not working

Posted: 2019-05-18T08:37:16-07:00
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 later today. The patch will be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ by sometime tomorrow.