From 6023e9216ac52314234411a03db5c0f0963256de Mon Sep 17 00:00:00 2001 From: Saul Shanabrook Date: Sat, 11 May 2013 09:12:29 -0300 Subject: [PATCH] pass in upscale keyword to thumbnail template tag --- imagekit/generatorlibrary.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imagekit/generatorlibrary.py b/imagekit/generatorlibrary.py index bc5a0f8..f07e606 100644 --- a/imagekit/generatorlibrary.py +++ b/imagekit/generatorlibrary.py @@ -4,9 +4,9 @@ from .specs import ImageSpec class Thumbnail(ImageSpec): - def __init__(self, width=None, height=None, anchor=None, crop=None, **kwargs): + def __init__(self, width=None, height=None, anchor=None, crop=None, upscale=None, **kwargs): self.processors = [ThumbnailProcessor(width, height, anchor=anchor, - crop=crop)] + crop=crop, upscale=upscale)] super(Thumbnail, self).__init__(**kwargs)