diff --git a/beets/util/artresizer.py b/beets/util/artresizer.py index 2ef41f087..1a13f64ef 100644 --- a/beets/util/artresizer.py +++ b/beets/util/artresizer.py @@ -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. diff --git a/docs/changelog.rst b/docs/changelog.rst index 8688669e5..ea4a628b6 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -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: