We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae9e9a5 commit 9e0a7e1Copy full SHA for 9e0a7e1
src/load/decodeJpeg.ts
@@ -9,7 +9,11 @@ import { IJS, ImageColorModel } from '../IJS';
9
* @returns The decoded image.
10
*/
11
export function decodeJpeg(buffer: Uint8Array): IJS {
12
- const jpeg = decode(buffer, { useTArray: true });
+ const jpeg = decode(buffer, {
13
+ useTArray: true,
14
+ maxMemoryUsageInMB: Infinity,
15
+ maxResolutionInMP: Infinity,
16
+ });
17
return new IJS(jpeg.width, jpeg.height, {
18
data: jpeg.data,
19
colorModel: ImageColorModel.RGBA,
0 commit comments