1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-24 08:52:28 +02:00

fix(server): let thumbnail generation fail on error (#10479)

This commit is contained in:
Mert 2024-06-19 10:50:09 -04:00 committed by GitHub
parent 58b17a866b
commit 5813dc02d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,7 +45,7 @@ export class MediaRepository implements IMediaRepository {
}
async generateThumbnail(input: string | Buffer, output: string, options: ThumbnailOptions): Promise<void> {
const pipeline = sharp(input, { failOn: 'none', limitInputPixels: false })
const pipeline = sharp(input, { failOn: 'error', limitInputPixels: false })
.pipelineColorspace(options.colorspace === Colorspace.SRGB ? 'srgb' : 'rgb16')
.rotate();