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

module 'PIL.Image' has no attribute 'ANTIALIAS' with dependency pillow >= 10.0.0 #308

Closed
barsch opened this issue Sep 25, 2023 · 4 comments

Comments

@barsch
Copy link
Contributor

barsch commented Sep 25, 2023

Image.ANTIALIAS has been removed in Pillow 10.0.0 and needs to replaced with Image.LANCZOS or Image.Resampling.LANCZOS

see https://pillow.readthedocs.io/en/stable/releasenotes/10.0.0.html#constants

It is currently used here:

image.thumbnail(size, Image.ANTIALIAS)

@Alsaheem
Copy link

Alsaheem commented Oct 1, 2023

Hi @barsch
were you able to find a way around this ?

@Alsaheem
Copy link

Alsaheem commented Oct 1, 2023

For now , the following works
Uninstall pillow 10.0.1
pip uninstall Pillow

Install Pillow 9.5.0
pip install Pillow==9.5.0

@BoPeng
Copy link
Contributor

BoPeng commented Oct 16, 2023

@ellmetha Could you please merge #311 and create a new minor release of django-machina?

@ellmetha
Copy link
Owner

The new 1.3.1 minor release is available. Thanks for the PR @BoPeng!

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

No branches or pull requests

4 participants