Rust Apache-2.0

image-png

PNG decoding and encoding library in pure Rust

I

image-rs

Dernière activité 23 sept. 2026
image-rs/image-png

521

étoiles

174

forks

60

issues ouvertes

Ce README est souvent en anglais.

PNG Decoder/Encoder

Build Status Documentation Crates.io License

Robust and performant PNG decoder/encoder in pure Rust. Also supports APNG.

No unsafe code, battle-tested, and fuzzed on OSS-fuzz.

Performance

Performance is typically on par with or better than libpng.

Includes a fast encoding mode powered by fdeflate that is dramatically faster than the fastest mode of libpng while simultaneously providing better compression ratio.

On nightly Rust compiler you can slightly speed up decoding of some images by enabling the unstable feature of this crate.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Projets similaires

Encoding and decoding images in Rust

Rustdecoding-imagespixelrust
Iimage-rs
5,9 k étoiles723

PNG encoder and decoder in C and C++.

C++
Llvandeve
2,3 k étoiles461

A simple and easy-to-use library to load/save png images and manage png chunks

Cccompressiondata-structures
Rraysan5
233 étoiles23