qoir
Zpng
qoir | Zpng | |
---|---|---|
3 | 4 | |
94 | 254 | |
- | - | |
0.7 | 10.0 | |
about 1 year ago | almost 6 years ago | |
C | C | |
Apache License 2.0 | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
qoir
-
The Near-Lossless Image Formats Using Ultra-Fast LZ Codecs
It's important to notice that ZPNG beats virtually all QOI variants, as discovered in: https://github.com/nigeltao/qoir
-
Hello, PNG
But most platforms these days have some form of CRC32 "acceleration". Adler32 is easy to compute so I'm even less concerned there.
I spent a bunch of time optimising the code in [fpnge](https://github.com/veluca93/fpnge), which is [often notably faster than fpng](https://github.com/nigeltao/qoir/blob/5671f584dcf84ddb71e28d...), yet checksum time is basically negligible.
Having said that, the double-checksum aspect of PNG does feel unnecessary.
-
Quite OK Image is now my favorite asset format
* AFAIK it does this while beating the original QOI in terms of speed AND efficiency
Lots of benchmarks in: https://github.com/nigeltao/qoir
QOIX
QOIX is my very own version that adds:
Zpng
- Zpng: Better lossless compression than PNG with a simpler algorithm
-
Quite OK Image is now my favorite asset format
> You'd probably get even better results by using PNG's filters instead of QOI
Did anybody ever try this? It would be quite interesting and does not seem too difficult.
The only thing I could find is https://github.com/catid/Zpng which does not use the normal PNG filtering.
-
Google Chrome Is Already Preparing To Deprecate JPEG-XL (~3x smaller than JPEG, HDR, lossless, alpha, progressive, recompression, animations)
Also, Chris Taylor published an experimental PNG library with Zstd hardwired in.
-
QOI: Lossless Image Compression in O(n) Time
- I feel like the benchmark suite is lacking. For better overview you probably should include libpng results with max compression level and lowest compression level. Lossless modes of AVIF and WEBP would be nice. (also could throw similar project to yours like https://github.com/catid/Zpng) Not saying the benchmark is bad, but IMHO doesn't paint the full picture. From quick test I got significantly better compression on libpng, ofc in expense of time, but you didn't optimize it for speed either. So we have some results, but they are not really representative imho.
What are some alternatives?
CompactGUI - Transparently compress active games and programs using Windows 10/11 APIs
qoi - The “Quite OK Image Format” for fast, lossless image compression
qoipond - Lossless image format inspired by QOI “Quite OK Image” format
ZLib - A massively spiffy yet delicately unobtrusive compression library.
tinf - Tiny inflate library (inflate, gzip, zlib)
qoi - Pure Go encoder/decoder of the QOI image format
fpng - Super fast C++ .PNG writer/reader
zopfli - Zopfli Compression Algorithm is a compression library programmed in C to perform very good, but slow, deflate or zlib compression.
figlet-fonts - my collection of figlet / toilet ascii art fonts
qoi - A rust implementation of the “Quite OK Image” format for fast, lossless image compression
fpnge - Demo of a fast PNG encoder.
rawloader - rust library to extract the raw data and some metadata from digital camera images