#codec #decoding #pure

png

PNG decoding and encoding library in pure Rust

54 releases

0.17.15 Dec 7, 2024
0.17.14 Sep 27, 2024
0.17.13 Feb 19, 2024
0.17.10 Aug 18, 2023
0.3.1 Jun 15, 2015

#62 in Images

Download history 423752/week @ 2024-08-24 403223/week @ 2024-08-31 399855/week @ 2024-09-07 380394/week @ 2024-09-14 417025/week @ 2024-09-21 477864/week @ 2024-09-28 437271/week @ 2024-10-05 450039/week @ 2024-10-12 428308/week @ 2024-10-19 428324/week @ 2024-10-26 429216/week @ 2024-11-02 448554/week @ 2024-11-09 478646/week @ 2024-11-16 392769/week @ 2024-11-23 488991/week @ 2024-11-30 447248/week @ 2024-12-07

1,893,132 downloads per month
Used in 3,828 crates (335 directly)

MIT/Apache

410KB
7.5K SLoC

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.

Dependencies

~710KB
~14K SLoC