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

Never output jbig2 #10

Open
hfiguiere opened this issue Sep 21, 2022 · 3 comments
Open

Never output jbig2 #10

hfiguiere opened this issue Sep 21, 2022 · 3 comments

Comments

@hfiguiere
Copy link

djpdf should never use jbig2 to compress. While JBIG2 compression is good, it can produce erroneous document by substituting one shape with another:

See https://en.wikipedia.org/wiki/JBIG2#Disadvantages and the associated references.

@Unrud
Copy link
Owner

Unrud commented Sep 25, 2022

A warning message for JBIG2 is already displayed. This should only be a problem with very low DPI values compared to the character size.
To further mitigate the problem, I raised the default threshold for JBIG2 from 85% to 90% and added customizable defaults.

@hfiguiere
Copy link
Author

ever saw a warning (at least in the UI)

@hfiguiere
Copy link
Author

with the default settings:

before:
Screenshot from 2023-01-31 08-40-08

after:
Screenshot from 2023-01-31 08-40-34

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