From 7450638add959c8c6c8ada54383b772b29cd87bf Mon Sep 17 00:00:00 2001 From: Sanj Date: Sun, 19 Jun 2011 16:51:18 +0530 Subject: [PATCH] make sure thumbnail geometries are passed as ints --- edgware/editor/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edgware/editor/models.py b/edgware/editor/models.py index 2ff89cf..90ec39a 100644 --- a/edgware/editor/models.py +++ b/edgware/editor/models.py @@ -728,7 +728,7 @@ class ImageBox(models.Model): m = 1 path = join(MEDIA_ROOT, self.actual_unresized()) f = open(path) - size = str(self.width * m) + "x" + str(self.height * m) + size = str(int(self.width) * m) + "x" + str(int(self.height) * m) im = get_thumbnail(f, size, crop='center', quality=99) ''' context = {