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

x/imagescript/ImageScript.js>decode

zero-dependency JavaScript image manipulation
Extremely Popular
Latest
function decode
import { decode } from "https://deno.land/x/imagescript@1.3.0/ImageScript.js";

Decodes the given image binary

Parameters

data

The image data

onlyExtractFirstFrame

Whether to end GIF decoding after the first frame