What does HackerNews think of fpng?

Super fast C++ .PNG writer/reader

Language: C

It depends on the implementation. fpng can beat QOI in both speed and compression ratio https://github.com/richgel999/fpng
There are a lot of dimensions on which QOI could be improved, but most cases involve trade-offs, e.g. more complexity for better compression. The areas where QOI could have been strictly better, the dimensions on which it is not on the Pareto frontier, are more meaningful criticisms — missed opportunities.

This summer I spent a lot of time researching lossless compression formats as a streaming format for our 3D capture and reconstruction engine. QOI was on our list too.

My biggest criticism about QOI is that in many cases it doesn't compress at all, or even increases size. It works well on the demo images that come with the package but these are carefully selected. It also works well on high-res, high-quality images with lots of single-color background and/or smooth gradients. But give it grainy, noisy, smaller-format images and it completely breaks down.

We ended up sticking with PNG, which btw. has fast open source implementations too [1][2].

[1] https://libspng.org/ [2] https://github.com/richgel999/fpng

I wonder how fpng[1] would compare- a lossless speed optimized png compressor. Oh! The author Rich screenshoted[2] a really nice deck[3] that also boasts fpnge[4] and fjxl[5], both of which are even faster, both use AVX2 (or neon for FJXL).

Notably fjxl is in the reference libjxl tree. I'm not sure what if any constraints fast mode has, what it takes to use. The article uses cjxl, which does not run the fjxl fast mode, and further, fast mode was added after this article was written[6].

Other notes on jpeg-xl: it has progressive rendering. It has hdr!

The deck on FJXL & FPNGE is epic. Thanks Quote Ok Image (QOI) format for setting the fire on this all!!

[1] https://github.com/richgel999/fpng

[2] https://twitter.com/richgel999/status/1485976101692358656

[3] https://www.lucaversari.it/FJXL_and_FPNGE.pdf

[4] https://github.com/veluca93/fpnge

[5] https://github.com/libjxl/libjxl/tree/main/experimental/fast...

[6] https://github.com/libjxl/libjxl/pull/1124

In the other direction, you can target a subset of PNG to get less optimized images but with QOI-like encode and decode speed: https://github.com/richgel999/fpng
I think QOI inspired the creation of https://github.com/richgel999/fpng which creates standard PNGs and compares itself directly to QOI.
If QOI is interesting because of speed, you might take a look at fpng, a recent/actively developed png reader/writer that is achieving comparable speed/compression to QOI, while staying png compliant.

https://github.com/richgel999/fpng

Disclaimer: have not actively tried either.