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

Load before getting size in __array_interface__ #7034

Merged
merged 1 commit into from Mar 25, 2023

Conversation

radarhere
Copy link
Member

Resolves #7032

Rearranges code so that the image is loaded before setting the size, as TIFF images may be rotated and have the size changed in load_end().

This is similar to #6186 for thumbnail() and #6190 for resize(), except now for __array_interface__.

@hugovk hugovk merged commit 1ff0fb4 into python-pillow:main Mar 25, 2023
60 checks passed
@radarhere radarhere deleted the array_interface branch March 25, 2023 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

__array_interface__ - get size of image after loading
2 participants