remove crop debugging
This commit is contained in:
parent
f01807bfa7
commit
7b826468d8
2 changed files with 1 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue