try and fix float issue with crops

This commit is contained in:
Sanj 2011-07-06 20:30:50 +05:30
parent 47ea3e6fc3
commit 1ad1f29815

View File

@ -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 = {