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
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,8 @@
6
6
Javascript module to be run in the web browser for image compression.
7
7
8
8
## Features
9
-
- You can use this module to compress jpeg and png image by reducing **resolution** or **storage size** before uploading to application server to save bandwidth.
10
-
-**Multi-thread** (web worker) non-blocking compression are supported through options.
9
+
- You can use this module to compress jpeg and png images by reducing **resolution** or **storage size** before uploading to the application server to save bandwidth.
10
+
-**Multi-thread** (web worker) non-blocking compression is supported through options.
(can be used in framework like React, Angular, Vue etc)
92
+
(can be used in frameworks like React, Angular, Vue etc)
93
93
94
-
(work with bundler like webpack and rollup)
94
+
(work with bundlers like webpack and rollup)
95
95
96
96
### (or) Load UMD js file:
97
97
You can download imageCompression from the [dist folder][dist].
@@ -103,7 +103,7 @@ Alternatively, you can use a CDN like [delivrjs]:
103
103
104
104
105
105
## Support
106
-
If this project help you reduce time to develop, you can buy me a cup of coffee :)
106
+
If this project helps you reduce the time to develop, you can buy me a cup of coffee :)
107
107
108
108
<ahref="https://donaldcwl.github.io/donation/"target="_blank"><imgsrc="https://cdn.buymeacoffee.com/buttons/v2/default-red.png"alt="Buy Me A Coffee"height=60width=217 ></a>
109
109
@@ -185,7 +185,7 @@ imageCompression.getExifOrientation(file: File): Promise<number> // based on htt
185
185
| IE10, IE11, Edge| last 2 versions| last 2 versions| last 2 versions| last 2 versions| last 2 versions
186
186
187
187
### IE support
188
-
This library uses ES feature such as Promise API, globalThis. If you need to support browser that do not support new ES feature like IE. You can include the core-js polyfill in your project.
188
+
This library uses ES features such as Promise API, globalThis. If you need to support browsers that do not support new ES features like IE. You can include the core-js polyfill in your project.
189
189
190
190
You can include the following script to load the core-js polyfill:
191
191
```html
@@ -194,7 +194,7 @@ You can include the following script to load the core-js polyfill:
194
194
195
195
196
196
## Remarks for compression to work in Web Worker
197
-
The browser need to support "OffscreenCanvas" API in order to take advantage of non-blocking compression. If browser do not support "OffscreenCanvas" API, main thread is used instead. See https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas#browser_compatibility for browser compatibility of "OffscreenCanvas" API.
197
+
The browser needs to support "OffscreenCanvas" API in order to take advantage of non-blocking compression. If the browser does not support "OffscreenCanvas" API, the main thread is used instead. See https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas#browser_compatibility for browser compatibility of "OffscreenCanvas" API.
0 commit comments