DJVUMAKE(1)
π NAME π
djvumake β assemble DjVu image files π¦ that's the whole job description, no notes.
(and hi bestie, you're reading the djvumake(1) page from DjVuLibre-3.5, so you already know we're in vintage-icon territory β¨)
π SYNOPSIS π
djvumake djvufile [chkid=argument]...
πΈ DESCRIPTION πΈ
okay so djvumake assembles one single-page DjVu file, djvufile, by copying or creating chunks according to the arguments you hand it. here's every argument it supports, zero gatekeeping, all of them, in order:
INFO=w,h,dpiβ creates the initial information chunk.w,h, anddpidescribe the width, height and resolution of the image. you may omit all of them, it's chill. the default resolution is300dpi. the default width and height will be retrieved from the first mask chunk specified in the command line options.Sjbz=jb2fileβ creates a JB2 foreground mask chunk.jb2filemay contain raw JB2 data, or be a DjVu file containing JB2 data β like the ones produced by programcjb2.Smmr=mmrfileβ creates a MMR/G4 foreground mask chunk.mmrfilemay contain raw MMR data or be a DjVu file containing MMR data.BG44=iw44file[:n]β creates one or more IW44 background chunks.iw44filemust contain IW44 data. you get files like that by compressing the background image with programc44and extracting the raw IW44 data using programdjvuextract. the optional argumentnis the number of chunks to copy from the IW44 file. omit the number and it copies all available chunks. periodt πBGjp=jpegfileβ creates a JPEG encoded background chunk.jpegfilemust contain JPEG encoded data.BG2k=jpegfileβ creates a JPEG-2000 background chunk.jpegfilemust contain JPEG-2000 encoded data. heads up tho: the DjVu decoder does not yet display files containing JPEG-2000 data π so it's giving future-proof, but bestie you cannot see it yet.FGbz=(filename|{#color[:x,y,w,h]})β creates a foreground color chunk describing one solid color for each JB2 encoded mark. the argument can be the namefilenameof a file containing the raw data β files like that are best created using programdjvuextract(1). alternatively, the argument could describe a sequence of color zones. each color zone specifies a color namecolor, and optionally the coordinatesx,y,w,hof a rectangle. each mark receives the color of the last color zone whose rectangle intersects the bounding box of the mark. the mark is painted black if its bounding box does not intersect one of the zones. the rectangle coordinates are expressed in pixels with the origin at the bottom left corner of the page. the full page is assumed when no rectangle coordinates are specified. color names can be specified with exactly six hexadecimal digits, e.g.FGbz=#FF8080, or by one of the following sixteen HTML color names defined by the W3C, e.g.FGbz=#red:aqua,black,blue,fuchsiagray,green,lime,maroonnavy,olive,purple,redsilver,teal,white,yellow
FG44=iw44fileβ creates a IW44 foreground color chunk.iw44filemust contain IW44 data. such files can be obtained by compressing the background image with commandc44and extracting the raw IW44 data using programdjvuextract. only the first chunk is copied. π«ΆFGjp=jpegfileβ creates a JPEG foreground color chunk.FG2k=jpegfileβ creates a JPEG-2000 foreground color chunk. and again: the DjVu decoder does not yet display files containing JPEG-2000 data.INCL=fileidβ creates a DjVu3 include chunk pointing to the component file namedfileid. the resulting file should then be included into a multipage document using commanddjvm.Djbz=jb2fileβ creates a JB2 shape dictionary.jb2filemust contain raw JB2 data describing a JB2 dictionary.PPM=ppmfileβ creates a IW44 background chunk and a IW44 foreground color chunk by masking and subsampling the PPM fileppmfile.
so like, assume for instance that we have a PPM image myimage.ppm and an identically sized PBM bitonal image mymask.pbm whose black pixels indicate which pixels belong to the foreground. such a bitonal file might have been obtained by thresholding or color-keying the PPM image. we can then produce a DjVuDocument image using the following two commands:
cjb2 mymask.pbm mymask.djvu
djvumake my.djvu Sjbz=mymask.djvu PPM=myimage.ppm
and fr fr, the DjVu specification documents in the directory doc of the DjVuLibre distribution provide the authoritative information about the composition of a legal DjVu image file π those are the receipts, bestie.
π CREDITS π
this program was written by LΓ©on Bottou <leonb@users.sourceforge.net> and was then improved by Andrei Erofeev <andrew_erofeev@yahoo.com>, Bill Riemers <docbill@sourceforge.net> and many others. absolute icons, every single one of them π
β¨
π SEE ALSO π
and that's the whole page, bestie π brought to you by DjVuLibre-3.5, dated 10/11/2001 β yes it's older than us but it still ate π go make some chunks β¨
π¦ where this page comes from
- alpine 3.24: djvulibre-doc 3.5.30-r0 Β· GPL-2.0-only
- arch rolling: djvulibre 3.5.30.1-1 Β· GPL-2.0-or-later
- debian bookworm: djvulibre-bin 3.5.28-2.1~deb12u1
- debian bookworm: djvulibre-bin 3.5.28-2.2~deb12u1
- debian trixie: djvulibre-bin 3.5.28-2.2
- epel 10: djvulibre 3.5.28-13.el10_0 Β· GPL-2.0-or-later
- epel 9: djvulibre 3.5.28-4.el9 Β· GPLv2+
- fedora 43: djvulibre 3.5.28-14.fc43 Β· GPL-2.0-or-later
- fedora 43: djvulibre 3.5.30-1.fc43 Β· GPL-2.0-or-later
- fedora 44: djvulibre 3.5.28-16.fc44 Β· GPL-2.0-or-later
- fedora 44: djvulibre 3.5.30-1.fc44 Β· GPL-2.0-or-later
- nixos 26.05: djvulibre 3.5.29
- nixpkgs unstable: djvulibre 3.5.30
- opensuse-leap 16.0: djvulibre 3.5.28-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: djvulibre 3.5.28-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: djvulibre 3.5.28-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: djvulibre 3.5.28-160000.2.2 Β· GPL-2.0-or-later
- ubuntu jammy: djvulibre-bin 3.5.28-2build2
- ubuntu jammy: djvulibre-bin 3.5.28-2ubuntu0.22.04.2
- ubuntu noble: djvulibre-bin 3.5.28-2build4
- ubuntu noble: djvulibre-bin 3.5.28-2ubuntu0.24.04.2
- ubuntu questing: djvulibre-bin 3.5.28-2.2
- ubuntu resolute: djvulibre-bin 3.5.29-1
- ubuntu stonking: djvulibre-bin 3.5.30-1
- Copyright (c) 2001-2003 Leon Bottou, Yann Le Cun, Patrick Haffner
- Copyright (c) 2001 AT&T Corp., and Lizardtech, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms