Pyocr outputs WandRuntimeError with sample
Hi,
I was fuzzing pyocr and came across a case where pyocr throws an error while the image itself can still be opened with common image readers.
Traceback:
Traceback (most recent call last): File "/home/appuser/ocr.py", line 83, in <module> main(sys.argv) File "/home/appuser/ocr.py", line 56, in main image_in = Image(filename=args.file) File "/home/appuser/.local/lib/python3.7/site-packages/wand/image.py", line 9144, in __init__ self.read(filename=filename) File "/home/appuser/.local/lib/python3.7/site-packages/wand/image.py", line 9820, in read raise WandRuntimeError(msg) wand.exceptions.WandRuntimeError: MagickReadImage returns false, but did not raise ImageMagick exception. This can occur when a delegate is missing, or returns EXIT_SUCCESS without generating a raster.
I have attached said sample to this issue as image.png.
thanks for developing a great OCR wrapper!