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

Remove deprecated Image.ANTIALIAS constant #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jeffpeng3
Copy link

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.

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