From 3fc2d2c4fe4f3402683ba7b4e95964dcd83feb30 Mon Sep 17 00:00:00 2001 From: Sanj Date: Sun, 19 Jun 2011 17:00:35 +0530 Subject: [PATCH] oops --- 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 90ec39a..8e5b1ce 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(int(self.width) * m) + "x" + str(int(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 = {