You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand that you might be trying to just raise a general inconsistency with polygon, but, on a practical level, if you change polygon to line, and remove the outline argument, the following works.
Thanks for the PR and the suggested workaround! We encountered the problem while generating mask images with arbitrary polygons that sometimes happen to be degenerated, i.e. falling onto a horizontal line.
What did you do?
I drew two polygons, each specified by only two vertices that are both on a vertical or horizontal line.
What did you expect to happen?
Expected to get a one pixel wide vertical and a one pixel wide horizontal line.
What actually happened?
The vertical line shows but not the horizontal one.
What are your OS, Python and Pillow versions?
gives
but
results in
The text was updated successfully, but these errors were encountered: