Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix grey result of indexed PNG in pdfrenderer. #4189

Merged
merged 2 commits into from
Feb 12, 2024
Merged

Fix grey result of indexed PNG in pdfrenderer. #4189

merged 2 commits into from
Feb 12, 2024

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.

src/api/pdfrenderer.cpp Outdated Show resolved Hide resolved
@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
2 of 5 checks passed
@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.

None yet

2 participants