Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/imagescript/ImageScript.js>GIF

zero-dependency JavaScript image manipulation
Extremely Popular
Go to Latest
class GIF
extends Array
import { GIF } from "https://deno.land/x/imagescript@v1.2.14/ImageScript.js";

Represents a GIF image as an array of frames

Constructors

new
GIF(frames, loopCount?)

Creates a new GIF image.

Properties

readonly
duration

The GIFs duration (in ms)

readonly
height
readonly
width

Methods

encode(quality?)

Encodes the image into a GIF

resize(
width,
height,
mode?,
)
slice(start, end)

Static Methods

decode(data, onlyExtractFirstFrame?)

Decodes a GIF image