try and fix float issue with crops
This commit is contained in:
parent
47ea3e6fc3
commit
1ad1f29815
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user