Hi guys.

I already posted this in the Immich Discord, but I think this is not a Immich itself problem so I just want help to get this working, not opening an issue to Immich team.

I have Immich installed using the docker compose in a VM (Debian) in Proxmox.
I have my library as a external library since I’m testing Immich and my current main Photos system is Synology Photos running in a DS218Play.
I upload my photos using the “Photos Mobile” official Synology app.

Immich works in general well, but I realized that some photos (new photos from July 2023, I guess before that date I uploaded with the old app DS Photo) don’t have thumbnails and can’t be opened to see them.
If I force to generate the thumbnails I get this error in the log:

st] 7  - 03/04/2025, 2:51:52 PM   ERROR [Microservices:{"id":"1ec3168d-9b83-42e2-9cbd-57eaeb6a1e3d"}] Unable to run job handler (thumbnailGeneration/generate-thumbnails): Error: Input file contains unsupported image format  
Error: Input file contains unsupported image format  
    at Sharp.toBuffer (/usr/src/app/node_modules/sharp/lib/output.js:163:17)  
    at MediaRepository.decodeImage (/usr/src/app/dist/repositories/media.repository.js:54:68)  
    at MediaService.generateImageThumbnails (/usr/src/app/dist/services/media.service.js:164:63)  
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)  
    at async MediaService.handleGenerateThumbnails (/usr/src/app/dist/services/media.service.js:114:25)  
    at async JobService.onJobStart (/usr/src/app/dist/services/job.service.js:153:28)  
    at async EventRepository.onEvent (/usr/src/app/dist/repositories/event.repository.js:126:13)  
    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)  

However, for example if using Windows I copy the file to my desktop, rename it (similar name, same extension, just to avoid override it) and upload it again to the same folder, this copied file is able to generate the thumbnail being the exactly same photo.

So it looks like is a problem of permission or similar. I’ve tried putting the same permission to the photos that fails (accessing by SSH to my NAS) and the problem persists. I don’t know what can I do more. Immich is able to list the file and see the name, since it’s able to show it in the gallery, but for some reason is not able to open or process it.

I attach a screenshot inside the immich_server container showing the permission for the file (in the red square) that I’ve copied and pasted from Windows that Immich is able to show and generate the thumbnail and the rest, Immich is not able to process them.

I would appreciate any help here since this issue is avoiding that I can use Immich properly.

  • kr0n@piefed.socialOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 hours ago

    I’ve isolated the problem and it’s related to Synology and the “Photos Mobile” app.