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

x/imagescript/ImageScript.js>Image#rotate

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

Rotates the image the given amount of degrees

Parameters

angle

The angle to rotate the image for (in degrees)

optional
resize = [UNSUPPORTED]

Whether to resize the image so it fits all pixels or just ignore outlying pixels