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
Two points to define the bounding box. Sequence of either [(x0, y0), (x1, y1)] or [x0, y0, x1, y1], where x1 >= x0 and y1 >= y0. The bounding box is inclusive of both endpoints.
You can see a longer discussion about this in #6956, but we found that if a user had the co-ordinates in the incorrect order, this could lead to problems. This outline doesn't look correct.
We also felt that it was possible for users to meant to have the co-ordinates in the order that Pillow requests them, but to have them unintentionally be the wrong way around due to a bug in their code, and that it would be helpful for users if we pointed out this bug, rather than letting it slip by.
What did you do?
I updated Pillow package from 9.4.0 to 9.5.0 and run my code for drawing rectangles into the image.
What did you expect to happen?
Code will pass without any error. Same as it worked with version 9.4.0.
What actually happened?
I received the ValueError exception:
What are your OS, Python and Pillow versions?
The text was updated successfully, but these errors were encountered: