canvg as a node moule.
JavaScript
Switch branches/tags
Nothing to show
Latest commit 4505e31 Oct 10, 2016 @yetzt committed on GitHub Merge pull request #14 from vote539/patch-1
Fix image filter bugs; prevent render of 'font' elements

README.md

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.