mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2026-01-18 18:20:53 +00:00
Unpaper or its underlying libraries don't seem to accept pnms with an odd integer width. Although it's not clear if this is the issue at all. In any case, keeping the image a PNG works around the issue. unpaper only accepted PNM input in the past, which is why we send it PNM. Since it now accepts PNG, we might as well use PNG. Unpaper can write PNG as output too, but this added a few seconds to the test suite was not committed. Related issues: https://github.com/ocrmypdf/OCRmyPDF/issues/887 https://github.com/ocrmypdf/OCRmyPDF/issues/665 https://github.com/unpaper/unpaper/issues/82