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: tile cannot extend outside image on fromarray() #3902
Comments
Please can include the image that causes the problem? Please can also include a self-contained, copy-pastable code sample? Be concise with code posted. Guidelines on how to provide a good bug report: Bug reports which follow these guidelines are easier to diagnose, and are often handled much more quickly. Thank you! |
I am really sorry but I cannot provide neither the image nor the full code and the code sample is the only interesting part of the process. Before that I get coordinates from an object detection model. crop = image[484:852, 22:598]
crop_pil = Image.fromarray(crop) Once again, I am really sorry that I cannot fit your bug report policy but I just wanted to know if anyone already met an issue like this. I am really thankful for your help. |
I imagine you'll say that it is not the same, but there is #2383 (comment), which is fixed in the unreleased master branch. Depending on your architecture, there is #3841. Could you try using the master branch version of Pillow, rather than Pillow 5.1.0? |
In case it helps, Pillow 6.1.0 has now been released, which fixes both the issues that I mentioned. |
Thank you very much ! |
This comment has been minimized.
This comment has been minimized.
I have pillow 6.10 installed and still getting this error. |
@vnyk could you create a new issue describing your problem, with a self-contained example including a source image? |
@radarhere I did it here #4517 |
What did you do?
Trying to convert an array into Image after crop
What did you expect to happen?
Works
What actually happened?
ValueError: tile cannot extend outside image
What are your OS, Python and Pillow versions?
I basically run a script over more than 50k images and this part fails randomly. I have seen related issues such as #3044 and other ones on Stackoverflow but this never happens on an already cropped image.
Thank you in advance !
The text was updated successfully, but these errors were encountered: