- Fixed log output

pull/199/head
Steve Clement 5 years ago
parent 184065cf74
commit 9f0313a97e
  1. 4
      misp_modules/modules/import_mod/ocr.py

@ -61,11 +61,11 @@ def handler(q=False):
img = WImage(width=pdf.width, height=pdf.height * pages)
# Cycle through pages and stitch it together to one big file
for p in range(pages):
log.debug(f"Stitching page {p}")
log.debug(f"Stitching page {p+1}")
image = img.composite(pdf.sequence[p], top=pdf.height * p, left=0)
# Create a png blob
image = img.make_blob('png')
log.debug(f"Final image size is {pdf.width}x{pdf.height*p}")
log.debug(f"Final image size is {pdf.width}x{pdf.height*(p+1)}")
else:
image = document

Loading…
Cancel
Save