Skip to main content
Module

x/imagescript/mod.ts>GIF

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

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