Skip to content

Commit b92bdf8

Browse files
authored
Merge pull request #20628 from calixteman/bug2014399
Cap the max canvas dimensions in order to avoid to downscale large images in the worker (bug 2014399)
2 parents f302323 + ff42c0b commit b92bdf8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/image_resizer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const MIN_IMAGE_DIM = 2048;
2222
// In Chrome, there aren't max dimensions but only a max area. So an image with
2323
// a very large dimensions is acceptable but it probably doesn't hurt to reduce
2424
// it when considering that it will finally rendered on a small canvas.
25-
const MAX_IMAGE_DIM = 65537;
25+
const MAX_IMAGE_DIM = 32768;
2626
const MAX_ERROR = 128;
2727

2828
// Large images are encoded in using the BMP format (it's a way faster than

0 commit comments

Comments
 (0)