matthewwithanm / pilkit

Utilities and processors built for, and on top of PIL
BSD 3-Clause "New" or "Revised" License
196 stars 54 forks source link

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

Closed axoplasm closed 1 year ago

axoplasm commented 1 year ago

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.

gene-git commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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

thomasdn commented 1 year ago

@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 commented 1 year ago

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 commented 1 year ago

@vstoykov Any chance you could take a look?

dvzrv commented 1 year ago

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

vstoykov commented 1 year ago

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