pdfluent-jpeg2000 0.3.4

A memory-safe, pure-Rust JPEG 2000 decoder.
Documentation

pdfluent-jpeg2000

A pure-Rust JPEG 2000 image decoder, used to decode JPEG 2000-compressed images embedded in PDF documents.

pdfluent-jpeg2000 is one of the open-source foundation crates used by the PDFluent commercial Rust PDF SDK. It is published as MIT OR Apache-2.0 so it can also be used standalone.

This crate is a fork of hayro-jpeg2000 by Laurenz Stampfl. The fork is maintained by PDFluent for coordinated exact-version pinning across the workspace.

What this crate gives you

  • Decode JPEG 2000-encoded image data (the /Filter /JPXDecode PDF stream)
  • Pure Rust — memory-safe, no C dependency, compiles to WebAssembly

JPEG 2000 is used in PDFs for high-quality continuous-tone color images (scanned photographs, archival imaging) and for some PDF/A workflows where better color fidelity than JPEG is desired.

What this crate is not:

  • Not a JPEG 2000 encoder
  • Not a generic image processing library

Usage

This crate is most often invoked transitively via PDFluent's PDF stream filtering layer. Direct usage:

[dependencies]
pdfluent-jpeg2000 = "0.3"

For PDF-level rendering, prefer the pdfluent facade.

License

MIT OR Apache-2.0 — preserved from upstream hayro-jpeg2000.

Copyright (c) Laurenz Stampfl (hayro-jpeg2000)
Copyright (c) 2026 Innovation Trigger BV (PDFluent fork)

See LICENSE-MIT and LICENSE-APACHE.

Links