Simple JB2 encoder.
Synopsiscjb2 [options] <inputpbmfile> <outputdjvufile>Description
File "cjb2.cpp" demonstrates a simple encoder for Bilevel DjVu Images. It is able to perform lossless encoding and limited lossy encoding. Lots of lossy encoding refinements are missing from this simple implementation. Comments in the code suggest a few improvements.
Options are:
Encoding is lossless unless one or several lossy options are selected. The dpi argument mostly affects the cleaning thresholds.
- -dpi xxx
- Specify image resolution (default 300).
- -clean
- Clean small flyspecs (lossy).
- -loose
- Substitute patterns with small variations (lossy).
- -verbose
- Displays additional messages.
Bugs
This is not the full-fledged multipage DjVu compressor, but merely a free tool provided with the DjVu Reference Library as a demonstrative example.
Alphabetic index Hierarchy of classes