Skip to content

Commit

Permalink
fix passing of resample parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
dfdan committed Oct 19, 2023
1 parent 0b6c911 commit 49b2b40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flask_iiif/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def resize(self, dimensions, resample=None):
"""Resize the image.
:param str dimensions: The dimensions to resize the image
:param resample: The algorithm to be used
:param resample: The algorithm to be used. Use Pillow default if not supplied.
:type resample: :py:mod:`PIL.Image` algorithm
.. note::
Expand Down Expand Up @@ -200,7 +200,7 @@ def resize(self, dimensions, resample=None):
).format(width, height)
)

arguments = dict(size=(width, height), resample=resample)
arguments = dict(size=(width, height))
if resample:
arguments["resample"] = resample
self.image = self.image.resize(**arguments)
Expand Down

0 comments on commit 49b2b40

Please sign in to comment.