[go: nahoru, domu]

Skip to content

Commit

Permalink
fix(server): let thumbnail generation fail on error (immich-app#10479)
Browse files Browse the repository at this point in the history
  • Loading branch information
mertalev committed Jun 19, 2024
1 parent 58b17a8 commit 5813dc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/repositories/media.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 5813dc0

Please sign in to comment.