# canvas-to-blob **Repository Path**: mirrors_adamchainz/canvas-to-blob ## Basic Information - **Project Name**: canvas-to-blob - **Description**: A polyfill for the canvas.toBlob method. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2025-11-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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`.