Merge pull request #579 from szopin/patch-2

Fix for ocr import
pull/583/head v2.4.163
Alexandre Dulaunoy 2022-09-20 16:14:07 +02:00 committed by GitHub
commit b1759e1e8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ def handler(q=False):
image = img.make_blob('png') image = img.make_blob('png')
log.debug("Final image size is {}x{}".format(pdf.width, pdf.height * (p + 1))) log.debug("Final image size is {}x{}".format(pdf.width, pdf.height * (p + 1)))
else: else:
image = document image = base64.b64decode(request["data"])
image_file = BytesIO(image) image_file = BytesIO(image)
image_file.seek(0) image_file.seek(0)