A polyfill for the canvas.toBlob method.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
index.js
package.json

README.md

canvas-to-blob

A polyfill for the canvas.toBlob method, for the browser.

Installation

npm install canvas-to-blob

Methods

var toBlob = require('canvas-to-blob');

toBlob(uri) - Transforms the Base64-encoded uri into a Blob.

toBlob.init() - Attaches the toBlob function to the Canvas prototype.

toBlob.supported - Returns true if this method is supported by the browser, otherwise false.