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

x/imagescript/ImageScript.js>Image.renderSVG

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

Creates a new image from the given SVG

Parameters

svg

The SVG content

optional
size = [UNSUPPORTED]

The size to use

optional
mode = [UNSUPPORTED]

The SVG resizing mode to use (one of SVG_MODE_SCALE, SVG_MODE_WIDTH, SVG_MODE_HEIGHT)