Skip to content

Commit

Permalink
ci: Unpin pillow, allow >=10.0.0 (#3764)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangotbanned authored Jan 9, 2025
1 parent 17baaa2 commit 23b1891
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ doc = [
"sphinxext_altair",
"jinja2",
"numpydoc",
"pillow>=9,<10",
"pillow",
"pydata-sphinx-theme>=0.14.1",
"myst-parser",
"sphinx_copybutton",
Expand Down
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 23b1891

Please sign in to comment.