| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…mage.LANCZOS` instead. For more information, see https://pillow.readthedocs.io/en/stable/releasenotes/10.0.0.html#constants.
| Back | FazBrowse Home | New Git URL |
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.