From cdc98de848be025898e1d007b47d03365c3698e0 Mon Sep 17 00:00:00 2001 From: Mert <101130780+mertalev@users.noreply.github.com> Date: Tue, 11 Jun 2024 22:11:03 -0400 Subject: [PATCH] fix(server): increase pixel limit for thumbnail generation (#10181) disable input limit --- server/src/repositories/media.repository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/repositories/media.repository.ts b/server/src/repositories/media.repository.ts index 73920820cf..fe2c3c46f3 100644 --- a/server/src/repositories/media.repository.ts +++ b/server/src/repositories/media.repository.ts @@ -45,7 +45,7 @@ export class MediaRepository implements IMediaRepository { } async generateThumbnail(input: string | Buffer, output: string, options: ThumbnailOptions): Promise { - const pipeline = sharp(input, { failOn: 'none' }) + const pipeline = sharp(input, { failOn: 'none', limitInputPixels: false }) .pipelineColorspace(options.colorspace === Colorspace.SRGB ? 'srgb' : 'rgb16') .rotate();