Skip to content

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
@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