The developer created LastPNG, an encoder designed to outperform existing PNG compression tools in both speed and file size. The project utilized a multi-agent AI approach where agents acted as colleagues to iteratively test hypotheses, rather than following a traditional hierarchy.
The test dataset consisted of 4,079 unique static PNG files totaling 1,000,000,000 bytes. Benchmarks compared LastPNG against libpng with zlib, libpng with zlib-ng, and the Rust png library across various compression levels.
LastPNG achieved a 12-fold speed increase over libpng with zlib level 6 at a similar file size. It also outperformed libpng with zlib-ng level 9 by 10 times in speed while reducing file size by 6%.
The implementation relies on a custom-patched libdeflate library. An experimental level 6 feature incorporates a neural network with 1,584 parameters to predict optimal image filters. The library is available for Rust and as a Pillow plugin for Python.






