FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove deprecated Image.ANTIALIAS constant by jeffpeng3 · Pull Request #8 · SystemRage/Metamorphosis · GitHub

Remove deprecated Image.ANTIALIAS constant - #8

Open
jeffpeng3 wants to merge 1 commit into
SystemRage:masterfrom
jeffpeng3:master
Open

Remove deprecated Image.ANTIALIAS constant#8
jeffpeng3 wants to merge 1 commit into
SystemRage:masterfrom
jeffpeng3:master

Conversation

Copy link
Copy Markdown

This commit removes the deprecated Image.ANTIALIAS constant. Use Image.LANCZOS instead.

This commit fixes the following error:

AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'

The error occurs because the Image.ANTIALIAS constant was removed in Pillow 10.0.0.
To fix the error, simply replace any occurrences of Image.ANTIALIAS with Image.LANCZOS.

For more information, see https://pillow.readthedocs.io/en/stable/releasenotes/10.0.0.html#constants.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

1 participant


Back | FazBrowse Home | New Git URL