Closed kchen0x closed 3 months ago
I have a similar problem since the last update. But it seems to be random. I can take 2 pictures. One is uploaded with thumbnail generation without problem. The other gives a broken thumbnail and this log:
[Nest] 6 - 06/16/2024, 7:38:33 PM ERROR [Microservices:JobService] Unable to run job handler (thumbnailGeneration/generate-preview): Error: Input file contains unsupported image format
[Nest] 6 - 06/16/2024, 7:38:33 PM ERROR [Microservices:JobService] Error: Input file contains unsupported image format
at Sharp.toFile (/usr/src/app/node_modules/sharp/lib/output.js:89:19)
at MediaRepository.generateThumbnail (/usr/src/app/dist/repositories/media.repository.js:69:14)
at MediaService.generateThumbnail (/usr/src/app/dist/services/media.service.js:158:48)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async MediaService.handleGeneratePreview (/usr/src/app/dist/services/media.service.js:135:29)
at async /usr/src/app/dist/services/job.service.js:148:36
at async Worker.processJob (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:394:28)
at async Worker.retryIfFailed (/usr/src/app/node_modules/bullmq/dist/cjs/classes/worker.js:581:24)
[Nest] 6 - 06/16/2024, 7:38:33 PM ERROR [Microservices:JobService] Object:
{
"id": "4e65ef49-c5e3-4e03-b9a5-a3cea96c9b29",
"source": "upload"
Can you share a sample image so I can reproduce the issue?
Possibly related issue in LibRaw. We should really update to their latest.
Can you share a sample image so I can reproduce the issue?
Sure: DSC00965.zip
This photo can be previewed by macOS well:
i've noticed something somewhat similar, raw files (.dng in my case, shot on google pixel) don't have a thumbnail (as shown in the images above), until i click on it. After that they have thumbnails and it shows in the server logs that webp versions were created
(Successfully generated WEBP image thumbnail for asset 923d0475-5ed6-41db-9561-fd1f5cc0a4f3
)
So the issue might not be that thumbnails don't get created at all, but just that it takes some time or a specific request
Fixed via #10457
The bug
upload SONY RAW (.arw) file as external library photos but can't not generate thumbnail. Details can be seen at related logs.
The OS that Immich Server is running on
Ubuntu 20.04.6 LTS
Version of Immich Server
v1.106.4
Version of Immich Mobile App
v1.106.3
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
Additional information
No response