Registry / utility / lodepng

lodepng

JSON →
library3.12.2rscratesunverified

Pure Rust port of LodePNG for reading and writing PNG files without system dependencies.

# Cargo.toml [dependencies] lodepng = "3.12.2"
INSTALL
IMPORT
SIG · LODEPNG
L
lodepng
utilityrustv3.12.2
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.

Decoder
use lodepng::Decoder;

Decode a PNG file using lodepng

use lodepng::Decoder; fn main() -> Result<(), lodepng::Error> { let decoder = Decoder::new(); let image = decoder.decode_file("input.png")?; println!("Loaded {}x{} image", image.width, image.height); Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.12.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
lodepng — cargo add lodepng · libregistry