mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2025-12-29 16:10:06 +00:00
Someone reported a bug where the .png input to unpaper ended up being type 'P' (palette) for some reason, which was not supported in unpaper. Not sure how it happened, but seemed easier to fix by explicitly supporting. Here we use png256 if it would capture all colors in the input file. It's up to tesseract/reportlab to make use of the palette PNG when rendering.