Skip to content

Commit

Permalink
Merge pull request #17 from dlcs/feature/large_image_test
Browse files Browse the repository at this point in the history
Update pypi deps
  • Loading branch information
donaldgray authored Jan 8, 2024
2 parents e591734 + 736afa5 commit 7f8f8f4
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 7f8f8f4

Please sign in to comment.