@@ -136,9 +136,9 @@ document.getElementById('file-input').onchange = function () {
136
136
}
137
137
```
138
138
139
- Or using the
139
+ Or use the
140
140
[ Promise] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise )
141
- based API like this:
141
+ based API like this ( [ requires ] ( #requirements ) a polyfill for older browsers) :
142
142
143
143
``` js
144
144
document .getElementById (' file-input' ).onchange = function () {
@@ -180,8 +180,8 @@ following two
180
180
181
181
- [ blueimp-canvas-to-blob] ( https://github.com/blueimp/JavaScript-Canvas-to-Blob )
182
182
for browsers without native
183
- [ canvas .toBlob() ] ( https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob )
184
- support, to create ` Blob ` objects out of transformed ` canvas ` elements.
183
+ [ HTMLCanvasElement .toBlob] ( https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob )
184
+ support, to create ` Blob ` objects out of ` canvas ` elements.
185
185
- [ promise-polyfill] ( https://github.com/taylorhakes/promise-polyfill ) to be able
186
186
to use the
187
187
[ Promise] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise )
@@ -336,7 +336,7 @@ If image loading fails, the `Promise` rejects with an
336
336
The optional options argument to ` loadImage() ` allows to configure the image
337
337
loading.
338
338
339
- It can be used the following way using the callback style:
339
+ It can be used the following way with the callback style:
340
340
341
341
``` js
342
342
loadImage (
@@ -663,11 +663,9 @@ loadImage(fileOrBlobOrUrl, { meta: true, canvas: true, maxWidth: 800 })
663
663
664
664
** Please note:**
665
665
` Blob ` objects of resized images can be created via
666
- [ canvas .toBlob] ( https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob ) .
666
+ [ HTMLCanvasElement .toBlob] ( https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob ) .
667
667
[ blueimp-canvas-to-blob] ( https://github.com/blueimp/JavaScript-Canvas-to-Blob )
668
- provides a polyfill for browsers without native
669
- [ canvas.toBlob] ( https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob )
670
- support.
668
+ provides a polyfill for browsers without native ` canvas.toBlob() ` support.
671
669
672
670
### Exif parser
673
671
0 commit comments