Registry / utility / zune-jpeg

zune-jpeg

JSON →
library0.5.14rscratesunverified

A fast, correct and safe jpeg decoder written in Rust.

# Cargo.toml [dependencies] zune-jpeg = "0.5.14"
INSTALL
IMPORT
SIG · ZUNE-JPEG
Z
zune-jpeg
utilityrustv0.5.14
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JpegDecoder
use zune_jpeg::JpegDecoder;

Decodes a JPEG file into raw pixel data.

use zune_jpeg::JpegDecoder; use std::fs::File; use std::io::Read; fn main() -> Result<(), Box<dyn std::error::Error>> { let mut file = File::open("image.jpg")?; let mut data = Vec::new(); file.read_to_end(&mut data)?; let decoder = JpegDecoder::new(&data); let pixels = decoder.decode()?; println!("Decoded {} pixels", pixels.len()); Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.14latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
52 hits · last 30 days
node
44
OpenAI (training)
1
Resources
zune-jpeg — cargo add zune-jpeg · libregistry