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
Copy file name to clipboardExpand all lines: README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# JavaScript Canvas to Blob
2
2
3
-
## About
3
+
## Description
4
4
Canvas to Blob is a polyfill for the standard JavaScript [canvas.toBlob](http://www.w3.org/TR/html5/the-canvas-element.html#dom-canvas-toblob) method.
5
5
6
6
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.
@@ -9,7 +9,7 @@ It can be used to create [Blob](https://developer.mozilla.org/en-US/docs/Web/API
9
9
Include the (minified) JavaScript Canvas to Blob script in your HTML markup:
10
10
11
11
```html
12
-
<scriptsrc="canvas-to-blob.min.js"></script>
12
+
<scriptsrc="js/canvas-to-blob.min.js"></script>
13
13
```
14
14
15
15
Then use the *canvas.toBlob()* method in the same way as the native implementation:
@@ -64,5 +64,8 @@ The following browsers support either the native or the polyfill *canvas.toBlob(
64
64
* Google Chrome on iOS 6.0+
65
65
* Google Chrome on Android 4.0+
66
66
67
+
## Test
68
+
[JavaScript Canvas to Blob Test](http://blueimp.github.io/JavaScript-Canvas-to-Blob/test/)
69
+
67
70
## License
68
71
The JavaScript Canvas to Blob script is released under the [MIT license](http://www.opensource.org/licenses/MIT).
0 commit comments