Skip to content

Commit

Permalink
Merge pull request #4868 from mweinelt/pillow10-compat
Browse files Browse the repository at this point in the history
Fix compatibility with pillow 10
  • Loading branch information
wisp3rwind committed Aug 10, 2023
2 parents a4e61e8 + c2118a8 commit 290c1df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion beets/util/artresizer.py
Expand Up @@ -353,7 +353,7 @@ def resize(self, maxwidth, path_in, path_out=None, quality=0,
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.
Expand Down
2 changes: 2 additions & 0 deletions docs/changelog.rst
Expand Up @@ -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:

Expand Down

0 comments on commit 290c1df

Please sign in to comment.