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

Regression: inverted image with pdf output mode and monochrome input TIFF #2771

Closed
callegar opened this issue Nov 18, 2019 · 6 comments
Closed

Comments

@callegar
Copy link

Environment

  • Tesseract Version: 5.0.0-alpha-546
  • Commit Number: g41c3
  • Platform: Linux X86-64 (Kubuntu disco)

Current Behavior:

Suppose that I have a monochrome file a.tiff. Doing

tesseract -l ita a.tiff a pdf

returns a pdf where the image colors are inverted (black for white and viceversa)

Expected Behavior:

Colors should remain the same as in the original tiff.

@callegar callegar changed the title Inverted image with pdf output mode and monochrome input TIFF Regression: inverted image with pdf output mode and monochrome input TIFF Nov 18, 2019
@callegar
Copy link
Author

Tesseract 4.1 does not have the issue on the same file.

@zdenop
Copy link
Contributor

zdenop commented Nov 18, 2019

Please respect guidance for posting issue!

  1. When reporting issue use the lastest source code.
  2. When reporting issue search if it was not already reported or solved Bilevel BW png inverted in PDF output #2059
  3. When reporting issue provide test case for replicating problem. Otherwise your report is useless.

@zdenop zdenop closed this as completed Nov 18, 2019
@callegar
Copy link
Author

Sorry for the non-conforming report.

  1. git version g41c3 is really the newest I can test installing from a deb...
  2. I tried to search but I missed Bilevel BW png inverted in PDF output #2059 that doesn't really have a very helpful title for searching (no word about color inversion)
  3. Will try to provide a test case next time I encounter an issue.

Thanks for fixing my poor duplicate search.

@zdenop
Copy link
Contributor

zdenop commented Nov 18, 2019

If you have this problem with the latest code, provide information (in 2059) for reproducing problem.

@stweil
Copy link
Member

stweil commented Nov 20, 2019

@callegar, I updated the title for #2059, so hopefully it will be easier to find in the future.

Could you please update your TIFF as an example for #2059? You report that this problem did not happen with 4.1, so it should be possible to find the commit which introduced it by using git bisect. That information would help in fixing the problem.

@stweil
Copy link
Member

stweil commented Nov 20, 2019

Sorry, I missed commit 2d6f38e where @zdenop fixed the problem. @callegar, so you can try the latest code which should work for you.

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

No branches or pull requests

3 participants