OnWorks favicon

minidjvu - Online in the Cloud

Run minidjvu in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command minidjvu that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



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

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.



Compute "average" representatives for shapes matching a pattern.

-a n

--aggression n
Sets aggression for pattern matching. The more the aggression, the less the file
size, but the more likely substitution errors will occur. The default is 100.
Usually you can raise it to about 110 more or less safely. Probably even 200 will
work fine, but don't rely on that.

Consistent aggression levels between versions is not guaranteed. The default,
however, will always be 100.

This option turns on --match automatically.


Remove small black marks that are probably noise. This algorithm can really
devastate halftone patterns, so use with caution.

This option is turned on by --lossy.

-d n

--dpi n
Specify the resolution of an image, measured in dots per inch. The resolution
affects some algorithms and it's recorded in DjVu and BMP files (TIFF should join


Sacrifice image quality to gain about 5-10% in file size. One erosion is almost
invisible, but 10 erosions in a row spoil an image badly (and they won't give you
50-100% of file size, alas). Erosion bonus stacks with pattern matching.

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.


Turn on all lossy options. Is equivalent to --clean --erosion --match --smooth.


Run pattern matching. This is the main method of shrinking the file size, but it
can also bring trouble with substitution errors. Use --aggression option to
maintain balance between file size and error probability.

This option is turned on by --lossy or --aggression.


Disable prototype searching. This makes lossless compression faster, but produced
files become much bigger.


Specify how many pages to compress in one pass. The default is 10. If -p 0 is
specified, minidjvu will attempt to process all pages at once, but be aware that
this can take a lot of memory, especially on large books.


Print verbose messages about what's done on which page. Works only with multipage
encoding. Useful only to survive boredom while compressing a book.


Flip some pixels that appear to be noise. The gain in file size is about 5%.
Visually the image is slightly improved, but it's hardly noticeable.

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.


Print messages about various stages of the process. It's not very useful, but
interesting to examine.


Specifies an extension for shared dictionary files (without a leading period). The
default is "iff".


Do not disable libtiff warnings. By default, TIFF warnings are supressed. Under
Windows default TIFF warning handler creates a message box. This is unacceptable
in a batch processing script, for instance. So the minidjvu default behavior is a
workaround for libtiff default behavior.

Use minidjvu online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    fre:ac - free audio converter
    fre:ac - free audio converter
    fre:ac is a free audio converter and CD
    ripper for various formats and encoders.
    It features MP3, MP4/M4A, WMA, Ogg
    Vorbis, FLAC, AAC, and Bonk format
    support, ...
    Download fre:ac - free audio converter
  • 2
    Matplotlib is a comprehensive library
    for creating static, animated, and
    interactive visualizations in Python.
    Matplotlib makes easy things easy and
    hard thing...
    Download Matplotlib
  • 3
    Write your chatbot logic once and
    connect it to one of the available
    messaging services, including Amazon
    Alexa, Facebook Messenger, Slack,
    Telegram or even yo...
    Download BotMan
  • 4
    Joplin is a free and open source
    note-taking and to-do application that
    can handle a large number of notes in
    Markdown format, organize them into
    notebooks and...
    Download Joplin
  • 5
    gerbv  a Gerber (RS-274X) viewer
    gerbv � a Gerber (RS-274X) viewer
    Gerbv is an open source Gerber file
    (RS-274X only) viewer. Gerbv lets you
    load several files on top of each other,
    do measurements on the displayed image,
    etc. ...
    Download gerbv � a Gerber (RS-274X) viewer
  • 6
    I/O performance Analysis Tool.
    Audience: Developers, Information
    Technology, Science/Research, System
    Administrators. User interface: Win32
    (MS Windows). Progr...
    Download Iometer
  • More »

Linux commands