From 1f4f4591dbb393a1c1095c4ece39f10a87a15c65 Mon Sep 17 00:00:00 2001 From: Donald Date: Tue, 10 Aug 2021 22:25:45 +0800 Subject: [PATCH] docs: update readme --- README.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/README.md b/README.md index e5fd6de..f06ea00 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ const options = { maxSizeMB: number, // (default: Number.POSITIVE_INFINITY) maxWidthOrHeight: number, // compressedFile will scale down by ratio to a point that width or height is smaller than maxWidthOrHeight (default: undefined) // but, automatically reduce the size to smaller than the maximum Canvas size supported by each browser. - // Please check the Cabeat part for details. + // Please check the Caveat part for details. onProgress: Function, // optional, a function takes one progress argument (percentage from 0 to 100) useWebWorker: boolean, // optional, use multi-thread web worker, fallback to run in main-thread (default: true) @@ -72,14 +72,6 @@ Each browser limits [the maximum size](https://developer.mozilla.org/en-US/docs/ So, we resize the image to less than the maximum size that each browser restricts.
(However, the `proportion/ratio` of the image remains.) -| Browser | Maximum height | Maximum width | Maximum area | -|---|---|---|---| -| Chrome | 32,767 pixels | 32,767 pixels | 268,435,456 pixels (i.e., 16,384 x 16,384) | -| Firefox | 32,767 pixels | 32,767 pixels | 472,907,776 pixels (i.e., 22,528 x 20,992) | -| Safari | 32,767 pixels | 32,767 pixels | 268,435,456 pixels (i.e., 16,384 x 16,384) | -| IE | 8,192 pixels | 8,192 pixels | ? | -| Etc | ? | ? | ? | - ### Helper function ### - for advanced users only, most users won't need to use the helper functions ```javascript