This is a simple implementation of QOI, which is a lossless image compression algorithm that compresses RGB and RGBA images to a similar size of PNG, while offering a 20x-50x speedup in compression and 3x-4x speedup in decompression.
Download and add the file stb_image.h to the repository path.
To check the compression ratio on files within the folder './images', first compile a shared library (DLL) using the C files, and run test.py.
gcc -shared -o qoi.dll main.c qoi.c
python3 test.py