mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:39:37 -05:00 
			
		
		
		
	fix(server): increase pixel limit for thumbnail generation (#10181)
disable input limit
This commit is contained in:
		
							parent
							
								
									126cbeabe8
								
							
						
					
					
						commit
						cdc98de848
					
				@ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user