3 ms·
We ought consider using QOI instead. QOI is often equivalent or better compression than PNG, _before_ you even compress it with something like LZ4 etc. Compre
by willvarfar 1y ago
We ought consider using QOI instead.
QOI is often equivalent or better compression than PNG, _before_ you even compress it with something like LZ4 etc.
Compressing QOI with something like LZ4 would generally outperform PNG.
- adgjlsfhk1 1y agoQOI has some pretty major downsides. it only supports 8 bit SRGB, and is optimized for images with 8 bit transparency. Also, the handsome it uses seems to harm compression when entropy compression is used. Also, the focus on streaming means that the algorithm can't take advantage of 2d locality. QOI is really cool, but I think the author cut the final version of the spec too early, and intentionally closed it off to a future version with more improvements. With another year or 2 of development, I think it probably works have become ~10% more efficient and suitable for more usecases.
- nigeltao 1y ago> Compressing QOI with something like LZ4 would generally outperform PNG. https://github.com/nigeltao/qoir https://github.com/nigeltao/qoir has some numbers comparing QOIR (which is QOI-inspired-with-LZ4) vs PNG. QOIR has better decode speed and comparable compression ratio (depending on which PNG encoder you use). QOIR's numbers are also roughly similar to ZPNG.