mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
fix(server): increase pixel limit for thumbnail generation (#10181)
disable input limit
This commit is contained in:
parent
126cbeabe8
commit
cdc98de848
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ export class MediaRepository implements IMediaRepository {
|
||||||
}
|
}
|
||||||
|
|
||||||
async generateThumbnail(input: string | Buffer, output: string, options: ThumbnailOptions): Promise<void> {
|
async generateThumbnail(input: string | Buffer, output: string, options: ThumbnailOptions): Promise<void> {
|
||||||
const pipeline = sharp(input, { failOn: 'none' })
|
const pipeline = sharp(input, { failOn: 'none', limitInputPixels: false })
|
||||||
.pipelineColorspace(options.colorspace === Colorspace.SRGB ? 'srgb' : 'rgb16')
|
.pipelineColorspace(options.colorspace === Colorspace.SRGB ? 'srgb' : 'rgb16')
|
||||||
.rotate();
|
.rotate();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue