jbig2dec(1)

jbig2dec1

File format converter specialized in jbig2 decoding

Usage

jbig2dec [options] file.jbig2

jbig2dec [options] global-stream page-stream

Overview

The jbig2dec command converts JBIG2 files to png or pbm files.

When passed a single file argument it is interpreted as a JBIG2 file stream, with either sequential or random-access organization.

When passed two stream arguments, they are interpreted as the global and page-specific portions of an embedded organization, as used in PDF. If a particular page references no global segment stream, /dev/null can be passed for the global-stream argument to request the embedded parser.

Options

The options are as follows:

-e, --embedded

Expect embedded bit stream without file header.

-o file, --output file

Store the decoded output in file. Defaults to the input with a different extension. Set to - for standard output.

-t type, --format type

Force a particular output file format. Supported are png and pbm.

-d, --dump

Print the structure of the JBIG2 file rather than explicitly decoding it.

-m, --hash

Print a hash of the decoded document.

-q, --quiet

Suppress warnings and other diagnostic output.

-v, --verbose

Report additional information about the decoding process. Pass just -v for information about the file as it's being decoded. This is the same as --verbose=2. Pass --verbose=3 or higher for debugging information.

-V, --version

Show program version information.

-h, --help

Show usage summary.

Releases

9 releases since Debian 6.0 (Squeeze); the text changed 4 times.

  1. 6.0–7
  2. 8–9
  3. 10
  4. 11–12
  5. 13–Arch

--embedded since Debian 11 (Bullseye); -V since Debian 11 (Bullseye); -e since Debian 11 (Bullseye); -m since Debian 11 (Bullseye).

Reporting bugs

Report bugs at https://bugs.ghostscript.com

Contact the developers on Discord: https://discord.gg/taPnFQp5gb or via the mailing list <[email protected]>.

Author

This manpage was initially written by Sebastian Rasmussen <[email protected]> for jbig2dec and the Debian Project.

From jbig2dec 0.20-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.