make sure thumbnail geometries are passed as ints
This commit is contained in:
parent
966ca75cb4
commit
7450638add
|
@ -728,7 +728,7 @@ class ImageBox(models.Model):
|
||||||
m = 1
|
m = 1
|
||||||
path = join(MEDIA_ROOT, self.actual_unresized())
|
path = join(MEDIA_ROOT, self.actual_unresized())
|
||||||
f = open(path)
|
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)
|
im = get_thumbnail(f, size, crop='center', quality=99)
|
||||||
'''
|
'''
|
||||||
context = {
|
context = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user