That's a very cool library, i might ditch stb_image for yours, thanks for sharing! I went ahead and added it to the list of libraries that supports QOI file format here: https://github.com/phoboslab/qoi/pull/235 One suggestion, have a little struct with function pointers for malloc/free/realloc, so that we can plug our own allocator