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

Ensure PIL.Image.resize() always gets a tuple size #2248

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

musicinmybrain
Copy link
Contributor

Fixes #2247.

I found these by grepping for \bresize\b and then auditing the context to decide whether the argument could be something other than a tuple. (I did not check whether every change here corresponds to a particular test regression.)

Then I repeated the tests as described in #2247 (comment) and confirmed that this fixes all of the regressions I reported, and doesn’t cause any new regressions.

@musicinmybrain
Copy link
Contributor Author

Relevant discussion is in python-pillow/Pillow#8195.

@musicinmybrain
Copy link
Contributor Author

musicinmybrain commented Jul 5, 2024

@mikedh mikedh changed the base branch from main to test/np2 July 5, 2024 20:04
@mikedh mikedh merged commit 4f1e3c4 into mikedh:test/np2 Jul 5, 2024
2 of 9 checks passed
@mikedh
Copy link
Owner

mikedh commented Jul 5, 2024

Thanks for the fix!! Seems like we might as well stick with a tuple even if they re-enable this in the future.

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.

A few new failing tests with Pillow 10.4.0
2 participants