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

Deprecation Warning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead. #1119

Closed
strarsis opened this issue Sep 20, 2022 · 2 comments

Comments

@strarsis
Copy link
Contributor

strarsis commented Sep 20, 2022

When using recent Pillow, a deprecation warning occurs:

DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.

Edit: It is PIL.Image.Resampling.LANCZOS but not PIL.Image.LANZCOS, this is a relatively new feature, so changing it may break the tool for older Pillow versions.

@mpetroff
Copy link
Owner

mpetroff commented Oct 9, 2022

I added a conditional check in 7d42e49, which will use the new syntax but only if Image.Resampling exists.

@strarsis
Copy link
Contributor Author

strarsis commented Oct 9, 2022

@mpetroff: Awesome! This not only fixes the issue in the future, but also fully preserves backwards-compatibility.

Alex-Carter01 added a commit to Alex-Carter01/moviepy that referenced this issue Nov 19, 2023
Image.ANTIALIAS is deprecated.
Replacing with the suggested replacement Image.Resampling.LANCZOS

see mpetroff/pannellum#1119
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

No branches or pull requests

2 participants