depress [options] inputfile.txt outputfile.djvu
-bw- create black and white document.
-errdiff- use error diffusion (in combination with
-bw).
-adaptive- use adaptive binarisation (in combination with
-bw).
-layered- create layered document (separate layers for backgroud and foreground).
-laydownall n- sets downsampling ratio for background and foreground layers (in combination with
-layered). Defaults to 3.
-laydownfg n- sets further foreground downsampling ratio (
-laydownall 3and
-laydownfg 2gets foreground downsampling ratio 6). Defaults to 2.
-palettized- create palettized document
-palcolors n- number of colors between 2 and 256 (defaults to 8)
-quant- use quantization for palettized document
-noteshrink- use noteshrink for palettized document
-auto- tries to guess type of every page (
-bwor
-photo).
-pta- Generates page title from full file name.
-shortfntitle- Uses only file name (without path and extension) for page title (in combination with
-pta).
-temp path- defines temporary directory.
-quality n- defines quality from 1 to 100 (defaults to 100).
-dpi n- defines dpi (defaults to 100).
-outline outline_file- sets file with outlines. File contains rows in format
page_no|level|text.
page_nois page number starting from 1,
levelis outline level (0 - chapter, 1 - subchapter and so one),
textis outline text.
Create a text file (for example "C:\My Album\album.txt"). Put images you want to have in your document into text file. Each line of file should have one image name. Image file name can be relative to text file path.
Run following command to create document:
depress "C:\My Album\album.txt" "C:\My Album\album.djvu"
Let's imagine you want to create a textbook with illustrations scanned at 600 dpi. You can use following command:
depress -quality 70 -dpi 600 -layered -laydownall 2 -laydownfg 2 "C:\My Album\album.txt" "C:\My Album\album.djvu"