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

ANTIALIAS and other constants deprecated in Pillow 10.x #64

Closed
axoplasm opened this issue Jul 3, 2023 · 8 comments
Closed

ANTIALIAS and other constants deprecated in Pillow 10.x #64

axoplasm opened this issue Jul 3, 2023 · 8 comments

Comments

@axoplasm
Copy link

axoplasm commented Jul 3, 2023

During a routine library upgrade I encountered this AttributeError:

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

I believe this is related to #59 and perhaps other issues. It appears these constants were removed in Pillow 10.

axoplasm added a commit to axoplasm/pilkit that referenced this issue Jul 3, 2023
@gene-git
Copy link

gene-git commented Jul 5, 2023

Please merge the PR for pillow 10 deprecations - these prevent pilkit from failing badly.
Also, be good to make a new release, so distros pick up the changes

@dvzrv
Copy link

dvzrv commented Jul 6, 2023

@matthewwithanm as a downstream packager for Arch Linux, I'd very much appreciate merging (and releasing!) these fixes. The last release is from 2017 and a lot has happened since then :)

@dvzrv
Copy link

dvzrv commented Jul 6, 2023

Judging from commit history, maybe @vstoykov is the person to ping here?
FTR: Currently we have to build from current HEAD and apply the mentioned pull requests to be compatible with pillow >= 10.0.0

ademaro added a commit to jokerinteractive/pilkit that referenced this issue Jul 16, 2023
ANTIALIAS — not working 10+
LANCZOS — working since 2.6, but deprecated
Resampling.LANCZOS — modern version

matthewwithanm#64
cdubz added a commit to babybuddy/babybuddy that referenced this issue Jul 29, 2023
Fixes #684

Django-imagekit has a dependency on pilkit which is using the removed attribute.

See:
 - matthewwithanm/django-imagekit#566
 - matthewwithanm/pilkit#64
@thomasdn
Copy link

@matthewwithanm I would very much appreciate if the above mentioned PR is accepted and a new version is released such that other downstream projects can benefit from this. For example, Sigal currently does not work due to this issue.

@Alexerson
Copy link

I tried sending a message to the mailing list (even though it looks inactive), let’s see if I get any answer.
Also, because of https://osv.dev/vulnerability/PYSEC-2023-175, this PR is starting to get really needed.

@matthewwithanm
Copy link
Owner

@vstoykov Any chance you could take a look?

@dvzrv
Copy link

dvzrv commented Sep 26, 2023

Hi! Will you also release this fix? There hasn't been a release since 2017 and downstreams need to lock on to versions! :)

@vstoykov
Copy link
Collaborator

Hey all! Good news, there is a new release in PyPi that is including the fix https://pypi.org/project/pilkit/3.0/

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

7 participants