canvas2blob

0.1.0 • Public • Published

Canvas2Blob

Convert canvas to a file blob.

usage

var canvas2blob = require('canvas2blob');
var canvasEl = document.getElementById("waveform")
 
var imgBlob = canvas2blob(canvasEL);
 
// Now you can upload img or do whatever else you
// like with it!
var form = new FormData();
form.append('file', imgBlob, 'waveform.png');
 

License

MIT License

/canvas2blob/

    Package Sidebar

    Install

    npm i canvas2blob

    Weekly Downloads

    8

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • meandave