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

Replaced Image.ANTIALIAS with Image.Resampling.LANCZOS #920

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

mattaster
Copy link
Contributor

Image.ANTIALIAS is deprecated, this was causing an issue in generating the snapshot previews.

#917

Image.ANTIALIAS is deprecated, this was causing an issue in generating the snapshot previews.
Copy link

@tr05t tr05t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works.

@3dflea
Copy link

3dflea commented Oct 18, 2023

This will not work going forward -

As of Pillow 10.0.0 the correct option is to replace Image.ANTIALIAS withImage.LANCZOS for the following reason -

Image.Resampling.LANCZOS was introduced in Pillow 9.0.0 as a new way to specify resampling filters, while Image.LANCZOS was the original way to specify the Lanczos resampling filter. However, Image.Resampling.LANCZOS was deprecated in Pillow 10.0.0, and Image.LANCZOS is now the recommended way to specify the Lanczos resampling filter.

@mattaster
Copy link
Contributor Author

It seems pointless to make the new change and pull request as original Dev is no longer active

@FormerLurker FormerLurker merged commit 170ec73 into FormerLurker:master Nov 8, 2023
@mattaster mattaster deleted the master-1 branch November 8, 2023 22:28
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.

None yet

5 participants