From a02e34c50a8da9808d9b24313f0636d3f39bc819 Mon Sep 17 00:00:00 2001 From: Dan Granville Date: Thu, 19 Oct 2023 16:41:42 +0100 Subject: [PATCH] fix passing of resample parameter --- flask_iiif/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flask_iiif/api.py b/flask_iiif/api.py index 412fd12..d702865 100644 --- a/flask_iiif/api.py +++ b/flask_iiif/api.py @@ -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:: @@ -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)