GDGIFExporter
GDGIFExporter is a Godot Engine plugin written in GDScript for exporting GIFs. It supports Godot 4.x and 3.x, offering quantization methods like Median Cut and Uniform, and is easy to integrate into Godot projects.
https://github.com/jegor377/godot-gdgifexporterGDGIFExporter: Create GIFs Directly from Godot
GDGIFExporter is a plugin for the Godot Engine that allows you to export GIFs directly from your projects. Written entirely in GDScript, it offers a straightforward way to create animated GIFs for sharing game content, tutorials, or promotional material. This tool is based on godot-gifexporter.
Key Features
- GDScript Implementation: Fully implemented in GDScript, making it easy to understand and modify.
- Godot 4.x and 3.x Support: Compatible with both Godot 4.x (master branch) and 3.x (3.x branch).
- Quantization Methods: Includes Median Cut and Uniform quantization methods for optimized color palette generation.
-
Error Handling: Provides error codes for debugging, such as
EMPTY_IMAGE
andBAD_IMAGE_FORMAT
. - Easy Integration: Simple API for adding frames and exporting the final GIF file.
How to Use
- Load the
GIFExporter
module. - Initialize the exporter with the desired width and height.
- Add frames using the
add_frame
method, specifying the image, delay, and quantization method. - Export the GIF data to a file using
export_file_data()
.
GDGIFExporter simplifies the process of creating GIFs within the Godot Engine, providing a valuable tool for developers looking to share their work effectively.