try to fix missing crops
This commit is contained in:
parent
443b6fc81f
commit
3ff94dc17b
|
@ -731,7 +731,7 @@ class ImageBox(models.Model):
|
||||||
try:
|
try:
|
||||||
f = open(path)
|
f = open(path)
|
||||||
except:
|
except:
|
||||||
self.crop(self.x1, self, y1, self.x2, self.y2, self.width, self.height)
|
self.crop(self.crop_x1, self.crop_y1, self.crop_x2, self.crop_y2, self.width, self.height)
|
||||||
f = open(path)
|
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))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user