Add support for JBIG2 (generic coding) #184

Open
ooBJ3u wants to merge 3 commits from ooBJ3u/img2pdf:main into main

3 Commits (main)

Author SHA1 Message Date
ooBJ3u 150a23169b Update 'README.md'
Per comment #184/files#issuecomment-1334
1 month ago
ooBJ3u b23d82c45e Use mono.jb2 for tests
This also uncovered a bug in jbig2enc where it uses the wrong unit
for resolution.
6 months ago
ooBJ3u 085dd192f6 Add support for JBIG2 (generic coding)
Implements the proposal detailed at
#112

This is a limited implementation of JBIG2, which can be extended to
support multiple pages, symbol tables, and other features of the format
in the future.

To test, I included a test fixture. You can also download 042.bmp (the same
one as @josch already downloaded in #112
from https://git.ghostscript.com/?p=tests.git;a=blob_plain;f=jbig2/042.bmp;hb=HEAD
and run the following command:

  jbig2 042.bmp | img2pdf > 042.pdf

This results in a small PDF, just as @josch originally found in the
comment mentioned above.

This is my first contribution to this repository so let me know if
something else is needed. Thanks for a great library!
6 months ago