Skip to content

Commit

Permalink
Update pypi deps
Browse files Browse the repository at this point in the history
ANTIALIAS const was removed from PILLOW and replaced with LANCZOS, see
https://pillow.readthedocs.io/en/stable/releasenotes/10.0.0.html#constants
  • Loading branch information
donaldgray committed Dec 7, 2023
1 parent e591734 commit 736afa5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/jp2/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def resize_and_save_img(img: Image, size: int, dest_path: pathlib.Path) -> Image
"""
scaled_width, scaled_height = _scale_dimensions_to_fit(
img.width, img.height, size, size)
img = img.resize((scaled_width, scaled_height), resample=Image.ANTIALIAS)
img = img.resize((scaled_width, scaled_height), resample=Image.LANCZOS)
logger.debug('Image resized to (%s, %s)', scaled_width, scaled_height)
img.save(dest_path, quality=90)
logger.debug('Resized image saved to: %s', dest_path)
Expand Down
12 changes: 6 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
awscli==1.25.53
Flask==2.2.2
Pillow==9.4.0
pytest==7.1.2
pytest-mock==3.8.2
uwsgi==2.0.20
awscli==1.31.9
Flask==2.3.2
Pillow==10.1.0
pytest==7.4.3
pytest-mock==3.12.0
uwsgi==2.0.23

0 comments on commit 736afa5

Please sign in to comment.