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, and dpi describe the width, height and resolution of the image. you may omit all of them, it's chill. the default resolution is 300 dpi. 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. jb2file may contain raw JB2 data, or be a DjVu file containing JB2 data β€” like the ones produced by program cjb2.
  • Smmr=mmrfile β€” creates a MMR/G4 foreground mask chunk. mmrfile may contain raw MMR data or be a DjVu file containing MMR data.
  • BG44=iw44file[:n] β€” creates one or more IW44 background chunks. iw44file must contain IW44 data. you get files like that by compressing the background image with program c44 and extracting the raw IW44 data using program djvuextract. the optional argument n is 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. jpegfile must contain JPEG encoded data.
  • BG2k=jpegfile β€” creates a JPEG-2000 background chunk. jpegfile must 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 name filename of a file containing the raw data β€” files like that are best created using program djvuextract(1). alternatively, the argument could describe a sequence of color zones. each color zone specifies a color name color, and optionally the coordinates x,y,w,h of 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, fuchsia
    • gray, green, lime, maroon
    • navy, olive, purple, red
    • silver, teal, white, yellow
  • FG44=iw44file β€” creates a IW44 foreground color chunk. iw44file must contain IW44 data. such files can be obtained by compressing the background image with command c44 and extracting the raw IW44 data using program djvuextract. 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 named fileid. the resulting file should then be included into a multipage document using command djvm.
  • Djbz=jb2file β€” creates a JB2 shape dictionary. jb2file must 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 file ppmfile.

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 ✨