@@ -136,9 +136,9 @@ document.getElementById('file-input').onchange = function () {
136136}
137137```
138138
139- Or using the
139+ Or use the
140140[ 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) :
142142
143143``` js
144144document .getElementById (' file-input' ).onchange = function () {
@@ -180,8 +180,8 @@ following two
180180
181181- [ blueimp-canvas-to-blob] ( https://github.com/blueimp/JavaScript-Canvas-to-Blob )
182182 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.
185185- [ promise-polyfill] ( https://github.com/taylorhakes/promise-polyfill ) to be able
186186 to use the
187187 [ 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
336336The optional options argument to ` loadImage() ` allows to configure the image
337337loading.
338338
339- It can be used the following way using the callback style:
339+ It can be used the following way with the callback style:
340340
341341``` js
342342loadImage (
@@ -663,11 +663,9 @@ loadImage(fileOrBlobOrUrl, { meta: true, canvas: true, maxWidth: 800 })
663663
664664** Please note:**
665665` 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 ) .
667667[ 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.
671669
672670### Exif parser
673671
0 commit comments