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 (Windows, Linux, Android, Web):
- Download the .zip file
- Extract it and put it anywhere in your project
- Reload the project to load the GDExtension
There is also a folder containing sample images to test the GDExtension.
For other platforms (iOS, MacOS) or Earlier Godot Versions (< 4.2) you have to compile the GDExtension manually.
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.