remove crop debugging

This commit is contained in:
j 2024-06-10 16:26:27 +01:00
commit 7b826468d8
2 changed files with 1 additions and 3 deletions

View file

@ -100,9 +100,8 @@ class CropHandler(OMLHandler):
with db.session():
item = Item.get(id)
path = item.get_path()
print(path, page, left, top, right, bottom)
data = crop(path, page, left, top, right, bottom)
if data:
if path and data:
self.set_header('Content-Type', 'image/jpeg')
self.set_header('Content-Length', str(len(data)))
self.write(data)