You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It can be used to create [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob) objects from an HTML [canvas](https://developer.mozilla.org/en-US/docs/HTML/Canvas) element.
In addition to the **canvas.toBlob** polyfill, the JavaScript Canvas to Blob script provides one additional function called **dataURLtoBlob**, which is added to the global window object if no AMD loader is used to load the script:
48
+
In addition to the **canvas.toBlob** polyfill, the JavaScript Canvas to Blob
49
+
script provides one additional function called **dataURLtoBlob**, which is added
50
+
to the global window object if no AMD loader is used to load the script:
41
51
42
52
```js
43
53
// 80x60px GIF image (color black, base64 data):
@@ -49,7 +59,8 @@ var b64Data = 'R0lGODdhUAA8AIABAAAAAP///ywAAAAAUAA8AAACS4SPqcvtD6' +
49
59
```
50
60
51
61
## Browsers
52
-
The following browsers support either the native or the polyfill *canvas.toBlob()* method:
62
+
The following browsers support either the native or the polyfill
63
+
*canvas.toBlob()* method:
53
64
54
65
### Desktop browsers
55
66
@@ -68,4 +79,5 @@ The following browsers support either the native or the polyfill *canvas.toBlob(
68
79
[JavaScript Canvas to Blob Test](https://blueimp.github.io/JavaScript-Canvas-to-Blob/test/)
69
80
70
81
## License
71
-
The JavaScript Canvas to Blob script is released under the [MIT license](http://www.opensource.org/licenses/MIT).
82
+
The JavaScript Canvas to Blob script is released under the
0 commit comments