Skip to content

Commit

Permalink
fix: Replace deprecated, removed PIL.Image.ANTIALIAS
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned committed Jan 9, 2025
1 parent 17baaa2 commit 7ccfc63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinxext/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def create_thumbnail(
final_height = height
final_width = int(im_width * height_factor)

thumb = im.resize((final_width, final_height), Image.ANTIALIAS)
thumb = im.resize((final_width, final_height), Image.Resampling.LANCZOS)
thumb.save(thumb_filename)


Expand Down

0 comments on commit 7ccfc63

Please sign in to comment.