make sure thumbnail geometries are passed as ints

This commit is contained in:
Sanj 2011-06-19 16:51:18 +05:30
parent 966ca75cb4
commit 7450638add

View File

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