Skip to main content
Module

x/imagescript/ImageScript.js>Image#resize

zero-dependency JavaScript image manipulation
Extremely Popular
Go to Latest
method Image.prototype.resize
import { Image } from "https://deno.land/x/imagescript@1.2.15/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