56 releases
0.18.0-rc | Mar 3, 2025 |
---|---|
0.17.16 | Dec 20, 2024 |
0.17.14 | Sep 27, 2024 |
0.17.13 | Feb 19, 2024 |
0.3.1 | Jun 15, 2015 |
#4 in Images
5,055,105 downloads per month
Used in 4,139 crates
(352 directly)
425KB
8K
SLoC
PNG Decoder/Encoder
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
- Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
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
~0.6–0.8MB
~15K SLoC