Single-file MIT licensed library for C/C++
See lif.h for the documentation and format specification.
More info from original format at https://qoiformat.org
LIF offer an imporved version to fit better on embedded devices.
QOI offers sweet-spot of compression ratio and throughput for lossless image encoding. QOI's compression is roughly comparable to PNG (usually worse than libPNG, but better than stb_image_write.h), while throughput is a lot higher.
Benchmark results on a few thousand images can be found here: https://qoiformat.org/benchmark/
The QOI format is also extremely simple, which helps a lot when porting to other languages.
- lifconv.c converts between png <> lif
- phoboslab/qoi - Original QOI Format