empty print

This commit is contained in:
sanj 2010-07-28 04:11:52 +05:30
parent d671674ba9
commit fda8c46b23

View File

@ -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)