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

Pillow 10.0.0 deprecates Image.ANTIALIAS in util/artresizer.py #4869

Closed
arrrgi opened this issue Aug 6, 2023 · 0 comments · Fixed by #4868
Closed

Pillow 10.0.0 deprecates Image.ANTIALIAS in util/artresizer.py #4869

arrrgi opened this issue Aug 6, 2023 · 0 comments · Fixed by #4868
Labels
bug bugs that are confirmed and actionable

Comments

@arrrgi
Copy link

arrrgi commented Aug 6, 2023

I noted that according to https://pillow.readthedocs.io/en/stable/releasenotes/10.0.0.html#constants the artresizer function will fail as the Image.ANTIALIAS constant has been deprecated.

im.thumbnail(size, Image.ANTIALIAS)

Looking at the code above, it should probably be updated to use the new Image.LANCZOS or Image.Resampling.LANCZOS constant instead.

I'm not sure if this is backwards compatible into Pillow 9.5.0 but wanted to make the community aware of this breaking change.

@jackwilsdon jackwilsdon linked a pull request Aug 6, 2023 that will close this issue
3 tasks
@sampsyo sampsyo added the bug bugs that are confirmed and actionable label Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs that are confirmed and actionable
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants