jbig2dec(1)

πŸ“¦
version 0.20 Β· 2 versions
  • 0.20 Β· alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.19 Β· debian bookworm, ubuntu jammy
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– jbig2dec(1) β€” the jbig2dec Manual, but make it cute πŸ’–

okay bestie, pull up a chair, we're decoding JBIG2 files and we're gonna have a time ✨


🌸 NAME 🌸

jbig2dec β€” a file format converter that is specialized in JBIG2 decoding. like, that's her whole thing. that's her lane. she is not like other converters πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

jbig2dec [options] file.jbig2
jbig2dec [options] global-stream page-stream

πŸ¦‹ DESCRIPTION πŸ¦‹

so the jbig2dec command converts JBIG2 files to png or pbm files. that's the vibe. that's the whole job. πŸ‘‘

when you pass her a single file argument, she reads it as a JBIG2 file stream β€” and it can be organized either sequential or random-access. she's flexible like that, no cap.

when you pass her two stream arguments, they get interpreted as the global and page-specific portions of an embedded organization, exactly like the ones used in PDF. πŸ“„βœ¨ and listen β€” if a particular page doesn't reference any global segment stream, you can just pass /dev/null as the global-stream argument to request the embedded parser. iconic shortcut behavior, honestly.


✨ OPTIONS ✨

the options are as follows, and yes we're doing all of them, nobody gets left behind 🫢

  • -e, --embedded β€” expect an embedded bit stream without a file header. no header, just vibes.
  • -o file, --output file β€” store the decoded output in file. defaults to the input filename but with a different extension. set it to - for standard output. (yes, dash means stdout, classic.)
  • -t type, --format type β€” force a particular output file format. supported formats are png and pbm. pick your fighter πŸ₯Š
  • -d, --dump β€” print the structure of the JBIG2 file instead of actually decoding it. like reading the blueprint instead of building the house πŸ—οΈ
  • -m, --hash β€” print a hash of the decoded document. for the checksum girlies πŸ”₯
  • -q, --quiet β€” suppress warnings and other diagnostic output. shhh 🀫
  • -v, --verbose β€” report additional information about the decoding process. pass just -v for info about the file as it's being decoded β€” that's the same as --verbose=2. pass --verbose=3 or higher for debugging information. she will tell you everything, and honestly? love that for her πŸ’€
  • -V, --version β€” show program version information.
  • -h, --help β€” show usage summary. (hi bestie πŸ‘‹)

😭 REPORTING BUGS 😭

found a bug? report it at https://bugs.ghostscript.com β€” they wanna know, fr fr.

you can also contact the developers on Discord: https://discord.gg/taPnFQp5gb or via the mailing list <gs-devel@ghostscript.com>. group chat energy, but make it upstream. 🫢


πŸ‘‘ AUTHOR πŸ‘‘

this manpage was initially written by Sebastian Rasmussen <sebras@gmail.com> for jbig2dec and the Debian Project. absolute legend behavior, we stan 🌈


okay that's the whole page bestie, go decode something gorgeous πŸ’…

and that's a wrap! this was Version 0.20, dated 2023 May 19, from the jbig2dec Manual β€” mwah, bye, ilysm, go convert some files πŸ’–βœ¨πŸŽ€