Skip to main content
Module

x/imagescript/mod.ts>Image.renderSVG

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

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)