convert PNG bilevel images with jbig2decode rather than flatedecode #70

Closed
opened 2021-04-25 19:58:38 +00:00 by josch · 1 comment
Owner

By wizard on 2020-04-11T03:57:18.771Z

Bilevel images are widely used for scanned ebooks. Plz do so to explicitly reduce sizes.


By josch on 2020-04-11T06:49:15.782Z


I experimented with choosing the right encoder for bilevel images at around the time when I started writing img2pdf as is evident from the age of the file test_comp.sh from 2012.

But my tests didn't show a great advantage of using jbig2decode over first using png's paeth filter and then a flatedecode.

But maybe the kind of images I had is wrong -- do you have images of a different type where jbig2decode indeed produces significantly smaller images?


By josch on 2020-08-04T07:04:58.094Z


Hi @wizardforcel, I just wanted to ping you about this issue because I'm making a new release soon and was wondering whether you indeed have some input where jbig2decode provides a significant advantage over the current implementation. Otherwise, please close this issue. Thanks!

*By wizard on 2020-04-11T03:57:18.771Z* Bilevel images are widely used for scanned ebooks. Plz do so to explicitly reduce sizes. --- *By josch on 2020-04-11T06:49:15.782Z* --- I experimented with choosing the right encoder for bilevel images at around the time when I started writing img2pdf as is evident from the age of the file `test_comp.sh` from 2012. But my tests didn't show a great advantage of using jbig2decode over first using png's paeth filter and then a flatedecode. But maybe the kind of images I had is wrong -- do you have images of a different type where jbig2decode indeed produces significantly smaller images? --- *By josch on 2020-08-04T07:04:58.094Z* --- Hi @wizardforcel, I just wanted to ping you about this issue because I'm making a new release soon and was wondering whether you indeed have some input where jbig2decode provides a significant advantage over the current implementation. Otherwise, please close this issue. Thanks!
Author
Owner

Closing because of inactivity.

Closing because of inactivity.
josch closed this issue 2022-04-11 06:25:39 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: josch/img2pdf#70
No description provided.