djpdf icon indicating copy to clipboard operation
djpdf copied to clipboard

Never output jbig2

Open hfiguiere opened this issue 3 years ago • 3 comments

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.

hfiguiere avatar Sep 21 '22 17:09 hfiguiere

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.

Unrud avatar Sep 25 '22 16:09 Unrud

ever saw a warning (at least in the UI)

hfiguiere avatar Sep 25 '22 20:09 hfiguiere

with the default settings:

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

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

hfiguiere avatar Jan 31 '23 13:01 hfiguiere