From c86f399d291d62848d3316c062ffbaa76ad5e2fe Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Sun, 30 Jul 2017 22:27:39 +0200 Subject: [PATCH] Fixes issue #2 from kotti_images. Images scale now correct to a bounding box without cropping anything. --- kotti_image/views/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotti_image/views/__init__.py b/kotti_image/views/__init__.py index 0088593..5c41e23 100644 --- a/kotti_image/views/__init__.py +++ b/kotti_image/views/__init__.py @@ -101,7 +101,7 @@ def image(self, subpath=None): image, format, size = scaleImage(self.context.data.file.read(), width=width, height=height, - direction="thumb") + direction="thumbnail") res = Response( headerlist=[ ('Content-Disposition', '{0};filename="{1}"'.format(