Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/remixz/canvas-to-blob
- Owner: remixz
- License: mit
- Created: 2014-01-16T01:08:45.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-07-14T20:17:13.000Z (over 4 years ago)
- Last Synced: 2024-10-03T06:54:28.598Z (about 2 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 6
- Watchers: 2
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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`.