Skip to content

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