1DJVUMAKE(1) DjVuLibre-3.5 DJVUMAKE(1)
2
3
4
6 djvumake - Assemble DjVu image files.
7
8
10 djvumake djvufile [chkid=argument]...
11
12
14 Program djvumake assembles a single-page DjVu file djvufile by copying
15 or creating chunks according to the provided arguments. Supported
16 arguments are as follows:
17
18 INFO=w,h,dpi
19 Create the initial information chunk. Arguments w, h, and dpi
20 describe the width, height and resolution of the image. All
21 arguments may be omitted. The default resolution is 300 dpi.
22 The default width and height will be retrieved from the first
23 mask chunk specified in the command line options.
24
25 Sjbz=jb2file
26 Create a JB2 foreground mask chunk. File jb2file may contain
27 raw JB2 data, or be a DjVu file containing JB2 data such as
28 those produced by program cjb2.
29
30 Smmr=mmrfile
31 Create a MMR/G4 foreground mask chunk. File mmrfile may contain
32 raw MMR data or be a DjVu file containing MMR data.
33
34 BG44=iw44file[:n]
35 Create one or more IW44 background chunks. File iw44file must
36 contain IW44 data. Such files can be obtained by compressing
37 the background image with program c44 and extracting the raw
38 IW44 data using program djvuextract. The optional argument n
39 indicates the number of chunks to copy from the IW44 file.
40 Omitting the number of chunks copies all available chunks.
41
42 BGjp=jpegfile
43 Create a JPEG encoded background chunk. File jpegfile must con‐
44 tain JPEG encoded data.
45
46 BG2k=jpegfile
47 Create a JPEG-2000 background chunk. File jpegfile must contain
48 JPEG-2000 encoded data. The DjVu decoder does not yet display
49 files containing JPEG-2000 data.
50
51 FGbz=bzzfile
52 Create a foreground color chunk describing one solid color for
53 each JB2 encoded mark. File bzzfile is best created by extract‐
54 ing the chunk data from an existing DjVu file using command
55 djvuextract.
56
57 FG44=iw44file
58 Create a IW44 foreground color chunk. File iw44file must con‐
59 tain IW44 data. Such files can be obtained by compressing the
60 background image with command c44 and extracting the raw IW44
61 data using program djvuextract. Only the first chunk is copied.
62
63 FGjp=jpegfile
64 Create a JPEG foreground color chunk.
65
66 FG2k=jpegfile
67 Create a JPEG-2000 foreground color chunk. The DjVu decoder
68 does not yet display files containing JPEG-2000 data.
69
70 INCL=fileid
71 Create a DjVu3 include chunk pointing to the component file
72 named fileid. The resulting file should then be included into a
73 multipage document using command djvm.
74
75 PPM=ppmfile
76 Create a IW44 background chunk and a IW44 foreground color chunk
77 by masking and subsampling the PPM file ppmfile.
78
79 Assume, for instance, that we have a PPM image myimage.ppm and
80 an identically sized PBM bitonal image mymask.pbm whose black
81 pixels indicate which pixels belong to the foreground. Such a
82 bitonal file might have been obtained by thresholding or color-
83 keying the PPM image. We can then produce a DjVuDocument image
84 using the following two commands:
85
86 cjb2 mymask.pbm mymask.djvu
87 djvumake my.djvu Sjbz=mymask.djvu PPM=myimage.ppm
88
89 Please refer to the DjVu specification ( http://www.djvu‐
90 zone.org/djvu/djvu/djvuspec/ ) for more information about the composi‐
91 tion of a legal DjVu image file.
92
93
95 This program was written by Léon Bottou <leonb@users.sourceforge.net>
96 and was then improved by Andrei Erofeev <andrew_erofeev@yahoo.com>,
97 Bill Riemers <docbill@sourceforge.net> and many others.
98
99
101 djvu(1), djvuextract(1), cjb2(1), c44(1)
102
103
104
105DjVuLibre-3.5 10/11/2001 DJVUMAKE(1)