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

x/fresh_images/transformer.ts>transform

Fresh plugin for manipulating images on-the-fly.
Latest
function transform
import { transform } from "https://deno.land/x/fresh_images@v0.3.0/transformer.ts";

Transform an image or each frame of a GIF using a callback.

Parameters

img: Image | GIF

Image or GIF to transform

optional
cb = [UNSUPPORTED]

Transformation to apply to image or GIF frames

Returns

Promise<Image | GIF>

Transformed image or GIF