Adds support for loading and saving .qoi files.
What is .qoi?
Quite OK Image format is a new, simple, but effective image format. It achieves almost the same level of compression as .png, while being many times faster. If you want to learn how it works, the entire format specification fits on one page - view specification.
How to download/install
For supported platforms (see below) and versions (4.2+)
- Download the .zip file for your version
- Extract and put it anywhere in your project
- Reload the project (if project is open)
- There is a folder included "testimages", that contains official .qoi test images.
- You can also remove files from the "qoiformat/bin", for platforms you are sure you will not need.
Supported platforms/architectures:
- Windows - x86_64, x86_32
- Android - x86_64, x86_32, arm64, arm32
- Linux - x86_64, x86_32, arm32, arm64
- Web
For other platforms and versions (Godot 4.0+):
- You have to compile it yourself, I wont explain how to do that, because then this will be 10 pages long. But here are some steps specific to this:
- Download the .zip file that is named "source_code_vX"
- Extract the folder anywhere on your computer
- Get the correct version of godot-cpp and name the folder "godot-cpp"
- Compile how you want
- After compiling, edit the .gdextension file (use your logic)
- The files and folders that need to be in the godot project are: *.gdexetension, your binaries (the bin folder by default)
- There is a folder included, called "testimages", that contains official .qoi test images.
How to use
See the first image. Godot will automatically import it and convert to its internal format, so you can use load(), for saving convert the texture to Image and then to ImageQOI using the static method from_image.
Notes
Thanks to https://github.com/nathanfranke/gdextension/tree/main for helping me compile the GDExtension. I also included some images for testing. Big credit to the developer of qoi. Source code of the extension is included in the versions that start with "source_code". "Source code" above the download button points to the QOI github project.
Changelog for version 4.2+ Binaries v4
No changelog provided for this version.