Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/imagescript/ImageScript.js>Image#resize

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

Resizes the image to the given dimensions. Use Image.RESIZE_AUTO as either width or height to automatically preserve the aspect ratio.

Parameters

width

The new width

height

The new height

optional
mode = [UNSUPPORTED]

The resizing mode to use