Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError PIL/ImageDraw.py line 316, in rectangle #8149

Closed
ianovert opened this issue Jun 18, 2024 · 2 comments
Closed

ValueError PIL/ImageDraw.py line 316, in rectangle #8149

ianovert opened this issue Jun 18, 2024 · 2 comments

Comments

@ianovert
Copy link

Hi I’m using python 3.11 to compile my application into an apk on google colab but i keep getting and error on PIL.The Pillow version im using is 10.3.0 On google colab when compiling..The error im facing is described below.

armeabi_v7a/PIL/ImageDraw.py, line 316, in rectangle ValueError: x1 must be greater than or equal to x0

How do i solve the issue??Thanks in advance.

@radarhere
Copy link
Member

You are calling the rectangle method with either a single list of points - draw.rectangle([x0, y0, x1, y1]) - or with the top-left point and the bottom-right point - draw.rectangle([(x0, y0), (x1, y1)])

The error is trying to tell you that what you are specifying as the 'right' of the rectangle is less than the 'left', meaning that the rectangle doesn't quite make sense. There is something wrong with the numbers you are passing through.

@ianovert
Copy link
Author

Okay Thanks.

@hugovk hugovk closed this as not planned Won't fix, can't repro, duplicate, stale Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants