Merge pull request #4868 from mweinelt/pillow10-compat

Fix compatibility with pillow 10
This commit is contained in:
Benedikt 2023-08-10 11:10:10 +02:00 committed by GitHub
commit 290c1df10d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -353,7 +353,7 @@ class PILBackend(LocalBackend):
try:
im = Image.open(syspath(path_in))
size = maxwidth, maxwidth
im.thumbnail(size, Image.ANTIALIAS)
im.thumbnail(size, Image.Resampling.LANCZOS)
if quality == 0:
# Use PIL's default quality.

View file

@ -107,6 +107,8 @@ New features:
* :doc:`plugins/importfeeds`: Add a new output format allowing to save a
playlist once per import session.
:bug: `4863`
* Make ArtResizer work with :pypi:`PIL`/:pypi:`pillow` 10.0.0 removals.
:bug:`4869`
Bug fixes: