What It Does and Problem Solved
Lossy PNG compression usually involves tedious manual adjustments to balance colour banding, dithering, and file sizes. pngdeer removes quality sliders altogether. For every image, it dynamically tests palette configurations from 2 to 256 colours (with and without dithering), evaluating the output with the SSIMULACRA2 perceptual metric. It preserves the smallest file that maintains high visual fidelity (never exceeding a score of 90, which is visually identical at 1:1 scale).
Technology Stack
Built entirely in Rust, pngdeer is compiled both to native command-line binaries (macOS and Linux) and to WebAssembly for browser execution. The WebAssembly version utilises client-side multithreading across CPU cores, handling inputs up to 40 megapixels entirely within the browser without uploading any data to remote servers.
Audience and Maturity
Tested against 180 diverse images (icons, UI captures, illustrations, and photos), pngdeer outperformed TinyPNG and alternatives like pngquant, quantizr, and FFmpeg on compression ratio at matching fidelity. Licensed under MIT, it offers frontend engineers and operations teams an efficient, privacy-compliant drop-in tool for asset optimisation pipelines.