Media · rusty_jpx on MATA

Exact 5/3 Against OpenJPEG

Reversible streams match OpenJPEG 2.5.4 sample for sample. HTJ2K and Part 2 extensions are refused. Rust alternative to OpenJPEG.

What is rusty_jpx, the pure-Rust JPEG 2000 decoder?

rusty_jpx is a pure-Rust JPEG 2000 decoder for raw J2K codestreams, JP2/JPX files and PDF JPXDecode streams. Reversible 5/3 output is exact against OpenJPEG 2.5.4. Colour spaces are reported, not converted. HTJ2K and Part 2 extensions are refused.

1

Exact 5/3 Against OpenJPEG

Reversible streams match OpenJPEG 2.5.4 sample for sample. HTJ2K and Part 2 extensions are refused. Rust alternative to OpenJPEG.

rusty_jpx is the Remade with Rust pin for this lane — OpenJPEG and other C JPEG 2000 decoders on PDF JPXDecode, JP2 and raw J2K streams. Keep the product shape, change the safety floor, and stop shipping the old C or cloud default by accident.

2

Instant benefit

Decodes JPEG 2000 and PDF JPXDecode streams, with no C and no dependencies. Colour spaces are reported, not converted.

3

How MATA uses rusty_jpx

rusty_jpx ships in the remade_ffmpeg_rs workspace that MATA media paths already pin, so a PDF JPXDecode image or a JPEG 2000 file opens in Rust on a Home Computer or mesh node, and a malformed file returns an error instead of taking the process down.

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-jpx so SEO/AEO for the crate win and the MATA usage story do not compete for the same sentence.

4

Get access and deploy

  1. Open the source: https://github.com/Remade-With-Rust/remade_ffmpeg_rs/tree/main/crates/rusty_jpx.
  2. Add the crate (crates.io when published, otherwise git):
    cargo add rusty_jpx

    Git pin: cargo add --git https://github.com/Remade-With-Rust/remade_ffmpeg_rs.git rusty_jpx

  3. Prove the pin with cargo check before the next agent prompt can swap it for a C or cloud default.
  4. Read the MATA Learn note: /learn/pure-rust-jbig2-and-jpeg-2000-decoders/.
  5. When the binary is ready to place, ship toward the Disco Party and the Freedom Guide.

Why rusty_jpx is a pure-Rust JPEG 2000 decoder

What it keeps

rusty_jpx keeps the job of unpacking a JPEG 2000 image, including the one a PDF embeds as JPXDecode. It does not convert colour spaces, and it does not decode HTJ2K or Part 2 extensions.

Where it fits

rusty_jpx sits beside rusty_jbig2 for the other common PDF scan filter, and next to rusty_jpeg in the remade_ffmpeg_rs still-image lane.