diff --git a/server/src/repositories/media.repository.ts b/server/src/repositories/media.repository.ts index fe2c3c46f3..6e56bf48c3 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', limitInputPixels: false }) + const pipeline = sharp(input, { failOn: 'error', limitInputPixels: false }) .pipelineColorspace(options.colorspace === Colorspace.SRGB ? 'srgb' : 'rgb16') .rotate();