When you encode bitonal DjVu® images and the mask layer of color DjVu images, you can exchange varying amounts of textual detail for faster processing rates and smaller output file sizes.
The following text options specify the amount of textual detail to preserve:
--lossless – Preserves all the details of the original image. Each pixel in the resulting DjVu image is the same as the original image. This option is useful for historical documents, archives, and low-resolution text.
--quasilossless – Preserves more detail than the --conservative option, but slightly increases encoding time and the size of the resulting DjVu file. Use the --quasilossless option when you want the DjVu image to be nearly lossless.
--conservative – The --conservative option is suitable for most documents and is
the default when it is not specified on the command line.
--lossy – Specifies changes to text that are small enough that they are usually unnoticeable. These changes, however, significantly increase encoding speed and result in small DjVu files.
--aggressive – Makes extensive changes to the image, resulting in very fast encoding times and very small DjVu files. Use the --aggressive option when speed and file size are more important than fine details.
--fg-quality=<1-100> – The foreground quality may have an effect on the size of the foreground color layer (FG44). Small values correspond to smaller size (and lower fidelity). Because this layer typically corresponds to the color of letters, which are typically very uniform, this parameter rarely has significant effect.
Supporting command:
documenttodjvu