0.3.7 - This version is safe to use because it has no known security vulnerabilities at this time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform
Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.
Apache-2.0 - Apache License 2.0A fast, safe, and modern zlib implementation for PNG.
This crate contains an optimized implementation of the deflate algorithm tuned for PNG images, but capable of handling arbitrary data. It was created to serve as the compression backend for the png crate and can also be used as a standalone library. The upcoming 0.4.x series will feature a fully compatible streaming encoder supporting uncompressed output, traditional levels 1-9, and two specialized compression levels designed for PNG images.
The decoder employs several modern features than help it achieve exceptional performance that rivals or exceeds the performance of zlib-ng and zlib-rs without using any unsafe code:
The compressor is still under active development, with the current status tracked on the main branch.
Preliminary benchmark data shows that fdeflate meaningfully outperforms zlib-rs for levels 1-3 and is slightly better for levels 4-7. Levels 8 and 9 aren't yet implemented.
The "ultra-fast" compression level is a specialized compression mode that is several times faster than other modes while still providing some amount of compression. It is designed to be performance-competitive with QOI while still being compatible with zlib. It does so by making a bunch of simplifying assumptions:
In the 0.3.x series, the ultra-fast mode is the only supported compression mode.
The algorithms in this crate take inspiration many other compression libraries including: fpnge, lz4, xz-utils zlib-ng, zlib-rs, ZStandard, and zune-inflate.