Home

Awesome

godot-gifexporter

This plugin is now depracated in favor of pure GDScript implementation by jegor377 https://github.com/jegor377/godot-gdgifexporter

Plugin adding a GifExporter singleton enabling export of Image objects as a GIF file. Currently supports Windows and Linux, both 32 and 64 bit.

Installation:

  1. Clone this repository into your Godot projects addons folder - GDNative builds are already included in the repository.
  2. Enable this plugin in Project Settings.
  3. A new node GifExporter will now become available.

Usage:

First create a new instance of GifExport node. Then you can call these methods:

  1. Starts gif export:

GifExporter.begin_export(filename: String, width: int, height: int, frame_delay: float, loop_count: int = 0, bit_depth: int = 8, dither: bool = false) -> bool

The function returns false if it's called on an unsupported platform, true otherwise.

  1. Adds a frame to gif:

GifExporter.write_frame(frame : Image, background_color : Color, frame_delay : float, bit_depth : int = 8, dither : bool = false)

  1. Finish gif exporting:

GifExporter.end_export()

Compilation on Linux:

  1. Init and compile godot_cpp submodule
  1. Compile gifexporter
  1. Strip all resulting binaries of symbols with strip tool to greatly reduce size (godot-cpp seems to include a lot of symbols even in the release build)

Changes to gifanimcplusplus