Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/remixz/canvas-to-blob

A polyfill for the canvas.toBlob method.
https://github.com/remixz/canvas-to-blob

Last synced: about 1 month ago
JSON representation

A polyfill for the canvas.toBlob method.

Awesome Lists containing this project

README

        

## canvas-to-blob

A polyfill for the [canvas.toBlob](https://developer.mozilla.org/en/docs/Web/API/HTMLCanvasElement) method, for the browser.

### Installation

```
npm install canvas-to-blob
```

### Methods

```js
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`.