Media · rusty_jbig2 on MATA
Hostile JBIG2 Errors, Never Panics
PDF JBIG2Decode streams and standalone files decode with bounded memory and work. Colour extensions return Unsupported. Rust alternative to C JBIG2 decoders.
What is rusty_jbig2, the pure-Rust JBIG2 decoder for PDF scans?
rusty_jbig2 is a pure-Rust JBIG2 (ITU-T T.88) decoder for PDF JBIG2Decode streams, including shared globals, and for standalone files. Generic, text, refinement and halftone regions are covered. Malformed input returns an error. Colour extensions return Unsupported.
1
Hostile JBIG2 Errors, Never Panics
PDF JBIG2Decode streams and standalone files decode with bounded memory and work. Colour extensions return Unsupported. Rust alternative to C JBIG2 decoders.
rusty_jbig2 is the Remade with Rust pin for this lane — C JBIG2 parsers in PDF toolchains, so a scanned page is unpacked in Rust. Keep the product shape, change the safety floor, and stop shipping the old C or cloud default by accident.
2
Instant benefit
Decodes PDF JBIG2Decode streams with optional globals, and standalone files, with no crate dependencies.
3
How MATA uses rusty_jbig2
rusty_jbig2 ships in the remade_ffmpeg_rs workspace that MATA media paths already pin, so a scanned PDF page packed as JBIG2 is unpacked in Rust on a Home Computer or mesh node, and a hostile stream returns an error instead of crashing the process.
Load Building the New Internet from Dev Tools before an agent picks the stack, then audit with use-protection-please. The public conversion pin stays on remadewithrust.com/repo/rusty-jbig2 so SEO/AEO for the crate win and the MATA usage story do not compete for the same sentence.
4
Get access and deploy
- Open the source: https://github.com/Remade-With-Rust/remade_ffmpeg_rs/tree/main/crates/rusty_jbig2.
- Add the crate (crates.io when published, otherwise git):
cargo add rusty_jbig2Git pin:
cargo add --git https://github.com/Remade-With-Rust/remade_ffmpeg_rs.git rusty_jbig2 - Prove the pin with
cargo checkbefore the next agent prompt can swap it for a C or cloud default. - Read the MATA Learn note: /learn/pure-rust-jbig2-and-jpeg-2000-decoders/.
- When the binary is ready to place, ship toward the Disco Party and the Freedom Guide.
Why rusty_jbig2 is a pure-Rust JBIG2 decoder for PDF scans
What it keeps
rusty_jbig2 keeps the job of unpacking a JBIG2 image a PDF already embeds. Colour extensions are the gap. It is not wired into the rff command line yet.
Where it fits
rusty_jbig2 sits beside rusty_jpx, which reads JPEG 2000 and PDF JPXDecode, and rusty_tiff, which already covers CCITT fax in the same remade_ffmpeg_rs workspace.
Part of Remade with Rust on MATA · conversion landings on remadewithrust.com/repo · source under github.com/Remade-With-Rust.
Related on MATA: rusty_jpx · rusty_tiff


