Create a new GIF image object
image width
image height
whether the gif should loop, the delay between frames, etc. See {@link GifEncoderSettings}
Number of current GIF frames
Image height
GIF global RGBA color palette. Max 256 colors, alpha channel is ignored
GIF image settings, such as whether it should loop, the delay between frames, etc
Image width
Returns the GIF image data as an ArrayBuffer
Returns the file data as a Blob
Returns the file data as a NodeJS Buffer
Note: This method does not work outside of NodeJS environments
Returns the GIF image data as an Image object
Note: This method does not work outside of browser environments
Returns the file data as an Object URL
Note: This method does not work outside of browser environments
Revokes this file's Object URL if one has been created, use this when the url created with getUrl is no longer needed, to preserve memory.
Note: This method does not work outside of browser environments
Add a frame to the GIF image
Raw pixels to encode, must be an uncompressed 8bit array of palette indices with a size matching image width * image height
Create an animated GIF image from a Flipnote
This will encode the entire animation, so depending on the number of frames it could take a while to return.
whether the gif should loop, the delay between frames, etc. See {@link GifEncoderSettings}
Create an GIF image from a single Flipnote frame
animation frame index to encode
whether the gif should loop, the delay between frames, etc. See {@link GifEncoderSettings}
Default GIF encoder settings
GIF image encoder
Supports static single-frame GIF export as well as animated GIF