fabric-ssr

1.2.12 • Public • Published

Fabric-SSR (based on manray)

Converts Fabric.js JSON data into Image on server side

    var fssr = require('fabric-ssr');

    var canvasData = {objects: [], background: "white"}; // canvas data from fabric.Canvas.prototype.toJSON()

    new fssr.Render(canvasData, {width: 1024,height: 768}, function (buff) {
        if(buff.error){

        }
        if(buff.image) {

        }
    });

Dependencies (5)

Dev Dependencies (1)

Package Sidebar

Install

npm i fabric-ssr

Weekly Downloads

3

Version

1.2.12

License

MIT

Last publish

Collaborators

  • fuatsengul