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

x/imagescript/v2/framebuffer.d.ts>default#encode

zero-dependency JavaScript image manipulation
Extremely Popular
Go to Latest
method default.prototype.encode
import { default } from "https://deno.land/x/imagescript@v1.2.14/v2/framebuffer.d.ts";

Parameters

format: "png"
optional
options: { compression?:
| "none"
| "fast"
| "best"
| "default"
; }

Returns

Uint8Array