mirror of https://github.com/MISP/misp-modules
Fix for ocr import
Currently works only for .pdf files, with this .png and .jpg should also work (fixes #512)pull/579/head
parent
7d06740579
commit
79e067188e
|
@ -67,7 +67,7 @@ def handler(q=False):
|
|||
image = img.make_blob('png')
|
||||
log.debug("Final image size is {}x{}".format(pdf.width, pdf.height * (p + 1)))
|
||||
else:
|
||||
image = document
|
||||
image = base64.b64decode(request["data"])
|
||||
|
||||
image_file = BytesIO(image)
|
||||
image_file.seek(0)
|
||||
|
|
Loading…
Reference in New Issue