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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i canvas2blob

      Weekly Downloads

      19

      Version

      0.1.0

      License

      MIT

      Last publish

      Collaborators

      • meandave