From 1ad1f29815cae3f61ebc728175584f3c4f1926ac Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 6 Jul 2011 20:30:50 +0530 Subject: [PATCH] try and fix float issue with crops --- 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 ced1c86..0ed7d14 100644 --- a/edgware/editor/models.py +++ b/edgware/editor/models.py @@ -788,7 +788,7 @@ class ImageBox(models.Model): self.do_crop(self.crop_x1, self.crop_y1, self.crop_x2, self.crop_y2, self.width, self.height) f = open(path) - size = str(int(round(self.width * m))) + "x" + str(int(round(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 = {