MINIDJVU(1) | minidjvu-0.8 | MINIDJVU(1) |
minidjvu - encode/decode black-and-white DjVu pages
minidjvu [options] input_file output_file
There is a similar syntax for multipage compression:
minidjvu [options] input_files output_file
See MULTIPAGE ENCODING section below for more details.
minidjvu encodes and decodes single-page black-and-white DjVu files.
minidjvu is derived from DjVuLibre, which is the primary support library for DjVu.
Besides bitonal DjVu, minidjvu understands Windows BMP, PBM and TIFF (through libtiff) formats. Both inputfile and outputfile may be BMP, PBM, TIFF or DjVu. The file type is determined by extension. Input and output may coincide.
When given a DjVu-to-DjVu job, minidjvu decodes, then re-encodes the image. DjVu layers other than bitonal picture are lost.
Specifying a bitmap-to-bitmap job is possible, but relatively useful only with --smooth option.
All options preceded by two hyphens can be used with one hyphen. This is done to make minidjvu interface more familiar for DjVuLibre users.
To activate the multipage mode either specify in your command line more than just one input file, or pass to minidjvu a single multipage tiff document. By default (if --indirect is not specified) the compressed pages are stored into a single bundled document under the name provided in the command line.
There are several options referring to the multipage encoding process, namely --pages-per-dict, --indirect and --report.
Consistent aggression levels between versions is not guaranteed. The default, however, will always be 100.
This option turns on --match automatically.
This option is turned on by --lossy.
Erosion makes no sense when the output is not DjVu.
This option is turned on by --lossy.
Specifying this option in multipage mode causes minidjvu to generate an indirect multipage document, consisting from a single index file, several single-page DjVu files (one per each image passed to the encoder) and several shared dictionary files. Note that the index file is created under the name specified for the output file in the command line, while for each page the original input file name is preserved, with the extension being changed to ".djvu".
This mode is useful for placing a large document to a Web server, or if you are going to postprocess the generated files (e. g. by adding a color background). In the later case you may then want to convert your indirect document to DjVu bundled, using the djvmcvt utility, supplied with DjVuLibre.
This option is turned on by --lossy or --aggression.
Current filter is dumb and only removes black pixels with at least 3 white neighbors (of 4). You probably won't notice the effects.
This option is turned on by --lossy.
Multipage encoder does not work properly if pages have different resolution.
July 2009 | minidjvu-0.8 |