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

Conversion to PDF inverts the colors. #267

Open
whatever42 opened this issue Feb 23, 2022 · 3 comments
Open

Conversion to PDF inverts the colors. #267

whatever42 opened this issue Feb 23, 2022 · 3 comments

Comments

@whatever42
Copy link

Scanning worked fine. However, when I wanted to convert the resulting JPEG into a PDF, I was displayed a PDF with inverted colors (white text on black background).

Steps to reproduce

  • Scan a document (I only tried documents with black text on white background so far).
  • Open the Documents-Section (second round green button from the top)
  • Press on the newly scanned Document long, so the "Convert to PDF"-Option shows up
  • Select the "Convert to PDF" Option
  • Observe that the Colors are inverted in the displayed PDF

Expected behaviour

The PDF should look just like the JPEG that was converted.

Actual behaviour

The PDF looks like the JPEG with inverted colors (black text on white background).

Environment

I used Open Note Scanner 1.0.35-fdroid (35) on a Fairphone3+ running /e/ OS 0.21 (Android 11)

Would you like to work on the issue?

I am a Software Developer, but I never worked on Android/Fdroid before, so it would take me ages to get a Development Environment setup and running. I am hence pretty sure that you are able to fix this much faster than me.

@allgood
Copy link
Owner

allgood commented Feb 23, 2022

Very strange, more strange is that on my installation the colors inverted when opening the image in the gallery, but the PDF was displayed with correct colors.

@allgood
Copy link
Owner

allgood commented Feb 24, 2022

On my tests the colors where inverted because of my phone's "night mode".

@whatever42
Copy link
Author

Thanks for investigating this issue.

I can confirm that. I use a Fairphone3 and my phone does not have a "night mode", but a similar setting called "dark design" which is usually enabled on my device. When disabling dark design, the color inversion does not happen any more and I can convert scanned documents into PDFs without any further problems.

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

No branches or pull requests

2 participants