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

x/imagescript/ImageScript.js>Image#crop

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

Crops an image to the specified dimensions

Parameters

x

The x offset

y

The y offset

width

The new images width

height

The new images height