Skip to content

Conversation

sjbronner
Copy link
Contributor

When giving tesseract PNG images with an indexed color map with the "pdf" output, these images come out grayscale. Removing a special case for PNG images in pdfrenderer fixes that.

I tested the patch with PNG images containing indexed color maps and containing rgb content.

@egorpugin
Copy link
Contributor

Can you post pdfs for comparison before and after?

@egorpugin egorpugin merged commit becd395 into tesseract-ocr:main Feb 12, 2024
@sjbronner
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants