Skip to content

Load image before performing size calculations in thumbnail()#6186

Merged
hugovk merged 1 commit intopython-pillow:mainfrom
radarhere:thumbnail_load
Apr 6, 2022
Merged

Load image before performing size calculations in thumbnail()#6186
hugovk merged 1 commit intopython-pillow:mainfrom
radarhere:thumbnail_load

Conversation

@radarhere
Copy link
Member

@radarhere radarhere commented Apr 5, 2022

Helps #6185

The TIFF in the issue has a tile orientation of 8, meaning that it is rotated and the size is changed in load_end().

However, thumbnail() doesn't call load() before calculating the size that the image should become, so the calculations are incorrect. This is resolved by simply calling load() in thumbnail().

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

Successfully merging this pull request may close these issues.

2 participants