Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 2.06 KB

DEPRESS.md

File metadata and controls

41 lines (32 loc) · 2.06 KB

DEPRESS ( ru )

depress [options] inputfile.txt outputfile.djvu

Options

  • -bw - create black and white document.
  • -errdiff - use error diffusion (in combination with -bw).
  • -adaptive - use adaptive threshold (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 3 and -laydownfg 2 gets 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 (-bw or -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_no is page number starting from 1, level is outline level (0 - chapter, 1 - subchapter and so one), text is outline text.

Example

Create a text file (for example "C:\My Album\album.txt"). Put images names 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"