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

In Pillow 10.0.0 Image.ANTIALIAS is replaced with Image.LANCZOS or Image.Resampling.LANCZO #884

Closed
bellrichm opened this issue Aug 22, 2023 · 1 comment

Comments

@bellrichm
Copy link
Contributor

FYI, it looks like there is some more refactoring in Pillow 10.0.0. Here is some additional information:
https://stackoverflow.com/questions/76616042/attributeerror-module-pil-image-has-no-attribute-antialias
https://pillow.readthedocs.io/en/stable/releasenotes/10.0.0.html#constants

And where WeeWX uses the constant,

if self.anti_alias != 1:
            image.thumbnail((self.image_width / self.anti_alias, self.image_height / self.anti_alias), Image.ANTIALIAS)
tkeffer added a commit that referenced this issue Aug 22, 2023
@tkeffer
Copy link
Contributor

tkeffer commented Aug 22, 2023

Thanks for spotting that.

Fixed in commit 2482eeb

Breaking lots of stuff in their zeal to make Python look like Java.

@tkeffer tkeffer closed this as completed Aug 22, 2023
tkeffer added a commit that referenced this issue Oct 31, 2023
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

2 participants