I have ocrmypdf installed from the repos. Every time I want to ocr a bigger file, I get the following error:
Optimize ratio: 1.00 savings: -0.0%
Image optimization did not improve the file - discarded
An exception occurred while executing the pipeline
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/ocrmypdf/_sync.py", line 373, in run_pipeline
exec_concurrent(context)
File "/usr/lib/python3.9/site-packages/ocrmypdf/_sync.py", line 299, in exec_concurrent
pdf = post_process(pdf, context)
File "/usr/lib/python3.9/site-packages/ocrmypdf/_sync.py", line 234, in post_process
return optimize_pdf(pdf_out, context)
File "/usr/lib/python3.9/site-packages/ocrmypdf/_pipeline.py", line 803, in optimize_pdf
optimize(input_file, output_file, context, save_settings)
File "/usr/lib/python3.9/site-packages/ocrmypdf/optimize.py", line 623, in optimize
pike.save(output_file, **save_settings)
File "/usr/lib/python3.9/site-packages/pikepdf/_methods.py", line 803, in save
self._save(
OSError: [Errno 28] No space left on device
I read on the internet that this might be due to the tmp folder being too small. Thus i enlarged it to 5GB using this:
mount -o remount,size=5G /tmp/
But I still get the same error. On other devices where (I think) I have the same Manjaro setup, there is no problem. Maybe someone can help me?