empty print
This commit is contained in:
parent
d671674ba9
commit
fda8c46b23
|
@ -582,7 +582,6 @@ class ImageBox(models.Model):
|
||||||
self.save()
|
self.save()
|
||||||
tpl = (self.crop_x1, self.crop_y1, self.crop_x2, self.crop_y2,)
|
tpl = (self.crop_x1, self.crop_y1, self.crop_x2, self.crop_y2,)
|
||||||
image_full_path = join(MEDIA_ROOT, self.original_print())
|
image_full_path = join(MEDIA_ROOT, self.original_print())
|
||||||
print
|
|
||||||
original_cropped = Image.open(image_full_path).crop(tpl)
|
original_cropped = Image.open(image_full_path).crop(tpl)
|
||||||
save_path = join(MEDIA_ROOT, self.cropped_path(), self.cropped_fname())
|
save_path = join(MEDIA_ROOT, self.cropped_path(), self.cropped_fname())
|
||||||
original_cropped.save(save_path)
|
original_cropped.save(save_path)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user