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

x/imagescript/ImageScript.js>Image#rotate

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