this post was submitted on 04 Mar 2025
24 points (92.9% liked)

Selfhosted

43629 readers
360 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] kr0n@piefed.social 2 points 4 days ago

I've isolated the problem and it's related to Synology and the "Photos Mobile" app.