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
Image.ANTIALIASING is deprecated and removed from the Pillow library. #3914
Labels
bug
Something isn't working
Comments
totaam
added a commit
that referenced
this issue
Jul 4, 2023
Thanks, the commit above should fix that (untested). |
@totaam |
totaam
added a commit
that referenced
this issue
Jul 4, 2023
@bilal-tasdelen is the commit above any better? |
@totaam Yes, it should work. Thank you! |
totaam
added a commit
that referenced
this issue
Jul 4, 2023
totaam
added a commit
that referenced
this issue
Jul 4, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As of Pillow 10.0,
Image.ANTIALIASING
(and its aliasImage.LANCZOS
) is deprecated and removed. This causes the following error on Xpra:I found two places where
Image.ANTIALIAS
is called, inxpra/client/mixins/window_manager.py
line710
and720
. ReplacingImage.ANTIALIAS
withImage.Resampling.LANCZOS
seems to solve the issue. I checked the documentation, and this property is introduced in Pillow 1.1.3, so unless Xpra aims to be compatible with older versions of the library, it seems logical to replace them.Edit: On the latest commit on master branch, line numbers are
763
and773
.The text was updated successfully, but these errors were encountered: