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

Change deprecated ANTIALIAS to LANCZOS #66

Closed ademaro closed 1 year ago

ademaro commented 1 year ago

Image.ANTIALIAS — no longer works in version 10 Image.LANCZOS — works since version 2.6, but is also deprecated Image.Resampling.LANCZOS — modern version

https://github.com/matthewwithanm/pilkit/issues/64

Reference: Pillow 10.0.0 release notes (with table of removed constants)

GHPS commented 1 year ago

Works great fixing the issue Pilkit has with Pillow 10 - please merge this PR...

ademaro commented 1 year ago

Update: Image.LANCZOS deprecated in Pillow 9.1.0, but that was reversed in Pillow 9.4.0 and this constant will now remain available. Therefore, for maximum backward compatibility, I returned the constant name.

But this Pull Request is necessary since the ANTIALIAS constant has been completely removed in Pillow 10. @matthewwithanm @vstoykov

aljazkosir commented 1 year ago

@matthewwithanm any update on this?

matthewwithanm commented 1 year ago

@matthewwithanm any update on this?

Sorry, @vstoykov is the one maintaining the project at the moment.

vstoykov commented 1 year ago

Merged in #68