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

x/imagescript/ImageScript.js>Image.renderSVG

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