This commit is contained in:
Sanj 2011-06-19 17:00:35 +05:30
parent 7450638add
commit 3fc2d2c4fe

View File

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