multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "/usr/local/lib/python3.9/multiprocessing/pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "/usr/local/lib/python3.9/site-packages/ocrmypdf/_sync.py", line 189, in exec_page_sync ocr_image, preprocess_out = make_intermediate_images( File "/usr/local/lib/python3.9/site-packages/ocrmypdf/_sync.py", line 115, in make_intermediate_images rasterize_out = rasterize( File "/usr/local/lib/python3.9/site-packages/ocrmypdf/_pipeline.py", line 453, in rasterize page_context.plugin_manager.hook.rasterize_pdf_page( File "/usr/local/lib/python3.9/site-packages/pluggy/_hooks.py", line 265, in __call__ return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_manager.py", line 80, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 60, in _multicall return outcome.get_result() File "/usr/local/lib/python3.9/site-packages/pluggy/_result.py", line 60, in get_result raise ex[1].with_traceback(ex[2]) File "/usr/local/lib/python3.9/site-packages/pluggy/_callers.py", line 39, in _multicall res = hook_impl.function(*args) File "/usr/local/lib/python3.9/site-packages/ocrmypdf/builtin_plugins/ghostscript.py", line 68, in rasterize_pdf_page ghostscript.rasterize_pdf( File "/usr/local/lib/python3.9/site-packages/ocrmypdf/_exec/ghostscript.py", line 124, in rasterize_pdf with Image.open(BytesIO(p.stdout)) as im: File "/usr/local/lib/python3.9/site-packages/PIL/Image.py", line 3009, in open im = _open_core(fp, filename, prefix, formats) File "/usr/local/lib/python3.9/site-packages/PIL/Image.py", line 2996, in _open_core _decompression_bomb_check(im.size) File "/usr/local/lib/python3.9/site-packages/PIL/Image.py", line 2905, in _decompression_bomb_check raise DecompressionBombError( PIL.Image.DecompressionBombError: Image size (489634123 pixels) exceeds limit of 256000000 pixels, could be decompression bomb DOS attack. """ The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/src/app/tasks/ocr_ap/ocr_ap.py", line 195, in _run_ocr _download_ocr_and_upload_document(id_) File "/usr/src/app/tasks/ocr_ap/ocr_ap.py", line 75, in _download_ocr_and_upload_document _ocr(file_.name, file_.name) File "/usr/src/app/tasks/ocr_ap/ocr_ap.py", line 55, in _ocr ocr(input_filename, output_filename, language=['fra'], progress_bar=False, jobs=1) # type: ignore File "/usr/local/lib/python3.9/site-packages/ocrmypdf/api.py", line 340, in ocr return run_pipeline(options=options, plugin_manager=plugin_manager, api=True) File "/usr/local/lib/python3.9/site-packages/ocrmypdf/_sync.py", line 374, in run_pipeline exec_concurrent(context, executor) File "/usr/local/lib/python3.9/site-packages/ocrmypdf/_sync.py", line 271, in exec_concurrent executor( File "/usr/local/lib/python3.9/site-packages/ocrmypdf/_concurrent.py", line 82, in __call__ self._execute( File "/usr/local/lib/python3.9/site-packages/ocrmypdf/builtin_plugins/concurrency.py", line 134, in _execute for result in results: File "/usr/local/lib/python3.9/multiprocessing/pool.py", line 870, in next raise value PIL.Image.DecompressionBombError: Image size (489634123 pixels) exceeds limit of 256000000 pixels, could be decompression bomb DOS attack.