Registry / utility / imagefmt

imagefmt

JSON →
library4.0.0rscratesunverified

Image decoder and encoder supporting PNG, TGA, BMP, and JPEG formats.

# Cargo.toml [dependencies] imagefmt = "4.0.0"
INSTALL
IMPORT
SIG · IMAGEFMT
I
imagefmt
utilityrustv4.0.0
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.

Reader
use imagefmt::Reader;

Reads a PNG image file and prints its dimensions.

use imagefmt::Reader; fn main() { let img = Reader::new("image.png").unwrap().read().unwrap(); println!("Image dimensions: {}x{}", img.width(), img.height()); }
Debug
Known issues
gotchaJPEG encoding not supported (only decoding)
fix
Use another crate for JPEG encoding
affects: >=4.0.0
Upgrade
Version history
4.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
imagefmt — cargo add imagefmt · libregistry