Skip to content
This repository was archived by the owner on Mar 23, 2021. It is now read-only.

Latest commit

 

History

History
21 lines (13 loc) · 402 Bytes

File metadata and controls

21 lines (13 loc) · 402 Bytes

node-canvg

A port of canvg, which pareses svg input and renders the result to a canvas. http://code.google.com/p/canvg/

Usage

var canvg = require("canvg");
var Canvas = require("canvas");

var canvas = new Canvas();

canvg(canvas, '<svg>...</svg>');

/* and so on */

Todo

The canvg code is pretty much untouched. A lot of browser-specific code has to be removed or rewritten.