table of contents
DIDJVU(1) | didjvu manual | DIDJVU(1) |
NAME¶
didjvu - DjVu encoder with foreground/background separationSYNOPSIS¶
didjvu separate [{-o | --output} output-mask] [option...] input-image
didjvu separate --output-template name-template [option...] input-image...
didjvu encode [{-o | --output} output-djvu] [option...] input-image
didjvu encode --output-template name-template [option...] input-image...
didjvu bundle [{-o | --output} output-djvu] [option...] input-image...
didjvu {--version | --help | -h}
DESCRIPTION¶
didjvu uses the Gamera[1] framework to separate foreground/background layers, which can be then encoded into a DjVu file.didjvu separate generates images mask(s) for the supplied input image(s). Masks are saved in the PNG format.
didjvu encode converts the supplied input image(s) to single-page DjVu documents(s).
didjvu bundle converts the supplied input image(s) to a bundled multi-page DjVu document.
OPTIONS¶
didjvu accepts the following options:Input, output¶
-o, --output=output-djvuFor separate and encode commands, this option is allowed only if there is exactly one input file (i.e. exactly one output file).
--output-template=template
This option is mandatory if there is more than one input file (i.e. more than one output file).
--page-id-template=template
For portability reasons, page identifiers:
Masks¶
--loss-level=nThis option is similar to the -losslevel option of cjb2; please consult the cjb2(1) manual page for details.
--lossless
--clean
--lossy
-m, --method=method
abutaleb
bernsen
brink
Note
this method requires Gamera ≥ 3.4.0
djvu
global
niblack
otsu
sauvola
shading-subtraction
Note
this method requires Gamera ≥ 3.3.1
tsai
white-rohrer
The default is ‘djvu’.
Please consult the Gamera documentation[2] for details.
-x, --param=name=value
This option can be used more than once.
Please consult the Gamera documentation[2] for details.
-p, --pages-per-dict=n
--masks, --mask=input-mask
Foreground/background quality, resolution¶
(These options apply to encode and bundle commands only.)-d, --dpi=resolution
--fg-slices=n
This option is similar to the -slice option of c44; please consult the c44(1) manual page for details.
--fg-crcb=normal
--fg-crcb=half
--fg-crcb=full
--fg-crcb=none
--fg-subsample=n
--bg-slices=n+...+n , --bg-slices=n,...,n
This option is similar to the -slice option of c44; please consult the c44(1) manual page for details.
--bg-crcb=normal
--bg-crcb=half
--bg-crcb=full
--bg-crcb=none
--bg-subsample=n
XMP support¶
(These options apply to encode and bundle commands only.)--xmp
Note
This option is experimental!
Verbosity, help¶
-v, --verbose-q, --quiet
--version
-h, --help
ENVIRONMENT¶
The following environment variables affects didjvu:TMPDIR
TEMPLATE LANGUAGE¶
Template syntax¶
The template language uses the Python string formatting syntax[4].Available field names¶
namename-ext
base
base-ext
page, page+N, page-N
SEE ALSO¶
djvu(1), djvumake(1), c44(1), cjb2(1), minidjvu(1),NOTES¶
- 1.
- Gamera
- 2.
- Gamera documentation
- 3.
- XMP
- 4.
- Python string formatting syntax
2016-11-13 | didjvu 0.8.1 |