Make sharp.limitInputPixels configurable & more stable #27338
moinmoin
started this conversation in
Feature Request
Replies: 1 comment
|
This is already done, but the error is because missing same configuration when reading the metadata: #27980 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have searched the existing feature requests, both open and closed, to make sure this is not a duplicate request.
The feature
Problem description: Huge orthodata TIFs are scattered in an external library. These bring down the immich instance frequently when thumbnails are generated.
Thumbnails are generated on miniature (250p) and preview level (720p).
Version affected: 2.6.2
Server has 14GB Mem assigned
Suggestion:
Setting:
IMMICH_PROCESS_INVALID_IMAGES = true
Currently the following error leads to a restart of the server:
[Nest] 7 - 03/27/2026, 10:43:53 PM ERROR [Microservices:{"id":"374763bc-aad1-4230-9cf7-7826dd74efb3"}] Unable to run job handler (AssetGenerateThumbnails): Error: Input image exceeds pixel limit
Error: Input image exceeds pixel limit
at Sharp.metadata (/usr/src/app/server/node_modules/.pnpm/sharp@0.34.5/node_modules/sharp/lib/input.js:637:17)
at MediaRepository.getImageMetadata (/usr/src/app/server/dist/repositories/media.repository.js:264:95)
at MediaService.extractOriginalImage (/usr/src/app/server/dist/services/media.service.js:200:61)
at async MediaService.generateImageThumbnails (/usr/src/app/server/dist/services/media.service.js:213:32)
at async MediaService.handleGenerateThumbnails (/usr/src/app/server/dist/services/media.service.js:153:25)
at async JobService.onJobRun (/usr/src/app/server/dist/services/job.service.js:51:30)
at async EventRepository.onEvent (/usr/src/app/server/dist/repositories/event.repository.js:91:13)
at async /usr/src/app/server/node_modules/.pnpm/bullmq@5.70.4/node_modules/bullmq/dist/cjs/classes/worker.js:570:32
Platform
All reactions