Skip to content

Error in thumbnail generation for tif and dng #683

Closed

Description

@webysther

After doing this inside the container:

apt-get install -y libtiff6 dcraw

or

environment:
  DOCKER_MODS: linuxserver/mods:universal-package-install
  INSTALL_PACKAGES: libtiff6|dcraw

It's now working tif image thumbnail generation.

Related to immich-app/immich#27976

Activity

  1. changed the title [-]Add libtiff6 to dockerfile[/-] [+]Error in thumbnail generation for tif and dng[/+] on Apr 20, 2026
  2. JWhite97 commented on Apr 23, 2026

    @JWhite97

    I got the same error when I tried to upload tiff files.
    The logs looked like this:
    [Nest] 630 - 04/24/2026, 12:00:00 AM ERROR [Microservices:{"id":"cd451b48-5083-40d0-9647-21e294015608"}] Unable to run job handler (AssetGenerateThumbnails): Error: Input file contains unsupported image format

    After I run apt-get install -y libtiff6 dcraw it worked perfectly and I got no errors anymore 👍

    Thanks! 💯

  3. hydazz commented on May 31, 2026

    @hydazz
    Member

    Can I confirm if this is still the case on the :latest?

    Upstream does not appear to do a apt-get install -y libtiff6 dcraw, so doing so here would probably break something else

    • ghcr.io/immich-app/immich-server:v2.7.5 has ImageMagick coder modules for dng, raw, and tiff.
    • ghcr.io/imagegenius/immich:2.7.5 has the same dng, raw, and tiff coder modules.
    • Both have libtiff6.
    • Neither has dcraw.

    But under the hood, this and upstream should be identical and if tif/dng is not working I would be pointing my finger upstream, not to say we could not fix it here, but that would become a local fix and get messy

  4. jamminjon commented on Jun 3, 2026

    @jamminjon

    I am also getting the same error when uploading tiff files. I tried to apply the fix mentioned here but I am using the Unraid container and am unsure if I am using docker mods correctly. The logs after starting immich seem to indicate that libtiff6 and dcraw were installed as part of the container but no changes happen in relation to the failed thumbnails and all recent tiff files have the same error in loading the image.

  5. enice816 commented on Jun 9, 2026

    @enice816

    I am seeing this issue, even after installing the libtiff6 and dcraw packages. Error message is

    [Nest] 279 - 06/09/2026, 7:46:13 PM ERROR [Microservices:{"id":"a347811f-fedb-49b4-b698-e13dff278a34"}] Unable to run job handler (AssetGenerateThumbnails): Error: Input file contains unsupported image format Error: Input file contains unsupported image format at Sharp.toBuffer (/app/immich/server/node_modules/.pnpm/sharp@0.34.5/node_modules/sharp/lib/output.js:163:17) at MediaRepository.decodeImage (/app/immich/server/dist/repositories/media.repository.js:120:31) at process.processTicksAndRejections (node:internal/process/task_queues:104:5) at async MediaService.decodeImage (/app/immich/server/dist/services/media.service.js:186:32) at async MediaService.extractOriginalImage (/app/immich/server/dist/services/media.service.js:197:44) at async MediaService.generateImageThumbnails (/app/immich/server/dist/services/media.service.js:213:32) at async MediaService.handleGenerateThumbnails (/app/immich/server/dist/services/media.service.js:153:25) at async JobService.onJobRun (/app/immich/server/dist/services/job.service.js:51:30) at async EventRepository.onEvent (/app/immich/server/dist/repositories/event.repository.js:91:13) at async /app/immich/server/node_modules/.pnpm/bullmq@5.71.0/node_modules/bullmq/dist/cjs/classes/worker.js:570:32

  6. enice816 commented on Jun 10, 2026

    @enice816

    FWIW this was working when I initially deployed my server about a month ago, so I went back to the version with tag version-v2.7.5 (https://github.com/imagegenius/docker-immich/pkgs/container/immich/845641591?tag=version-v2.7.5) and it was able to generate thumbnails for a .tif file without issue.

  7. JWhite97 commented on Jun 24, 2026

    @JWhite97

    I’m now having the same problem with the latest version. When I use the docker container with the tag version-v2.7.5, everything works perfectly.

  8. hydazz commented on Jun 27, 2026

    @hydazz
    Member

    this should actually be fixed in 32c656a

    please test once published

  9. JWhite97 commented on Jun 29, 2026

    @JWhite97

    this should actually be fixed in 32c656a

    please test once published

    I tried using "ghcr.io/imagegenius/immich:latest", but it did not work for me, so I went back to "ghcr.io/imagegenius/immich:version-v2.7.5".

  10. jamminjon commented on Jul 22, 2026

    @jamminjon

    this should actually be fixed in 32c656a
    please test once published

    I tried using "ghcr.io/imagegenius/immich:latest", but it did not work for me, so I went back to "ghcr.io/imagegenius/immich:version-v2.7.5".

    Unfortunately I am still having the same issue as well.

  11. hydazz commented on Jul 22, 2026

    @hydazz
    Member

    @jamminjon please provide some logs, if different from Error: Input file contains unsupported image format Error: Input file contains unsupported image format at Sharp.toBuffer

  12. jamminjon commented on Jul 27, 2026

    @jamminjon

    @hydazz its the exact same error message

    [Nest] 253 - 07/26/2026, 7:45:40 PM ERROR [Microservices:{"id":"4a42e0f6-9579-4937-904c-41d171d81e14"}] Unable to run job handler (AssetGenerateThumbnails): Error: Input file contains unsupported image format Error: Input file contains unsupported image format at Sharp.toBuffer (/app/immich/server/node_modules/.pnpm/sharp@0.34.5/node_modules/sharp/lib/output.js:163:17) at MediaRepository.decodeImage (/app/immich/server/dist/repositories/media.repository.js:108:68) at MediaService.decodeImage (/app/immich/server/dist/services/media.service.js:185:59) at process.processTicksAndRejections (node:internal/process/task_queues:104:5) at async MediaService.extractOriginalImage (/app/immich/server/dist/services/media.service.js:196:44) at async MediaService.generateImageThumbnails (/app/immich/server/dist/services/media.service.js:212:32) at async MediaService.handleGenerateThumbnails (/app/immich/server/dist/services/media.service.js:152:25) at async JobService.onJobRun (/app/immich/server/dist/services/job.service.js:78:30) at async EventRepository.onEvent (/app/immich/server/dist/repositories/event.repository.js:91:13) at async /app/immich/server/node_modules/.pnpm/bullmq@5.78.1/node_modules/bullmq/dist/cjs/classes/worker.js:589:32

  13. enice816 commented on Jul 30, 2026

    @enice816

    @hydazz its the exact same error message

    [Nest] 253 - 07/26/2026, 7:45:40 PM ERROR [Microservices:{"id":"4a42e0f6-9579-4937-904c-41d171d81e14"}] Unable to run job handler (AssetGenerateThumbnails): Error: Input file contains unsupported image format Error: Input file contains unsupported image format at Sharp.toBuffer (/app/immich/server/node_modules/.pnpm/sharp@0.34.5/node_modules/sharp/lib/output.js:163:17) at MediaRepository.decodeImage (/app/immich/server/dist/repositories/media.repository.js:108:68) at MediaService.decodeImage (/app/immich/server/dist/services/media.service.js:185:59) at process.processTicksAndRejections (node:internal/process/task_queues:104:5) at async MediaService.extractOriginalImage (/app/immich/server/dist/services/media.service.js:196:44) at async MediaService.generateImageThumbnails (/app/immich/server/dist/services/media.service.js:212:32) at async MediaService.handleGenerateThumbnails (/app/immich/server/dist/services/media.service.js:152:25) at async JobService.onJobRun (/app/immich/server/dist/services/job.service.js:78:30) at async EventRepository.onEvent (/app/immich/server/dist/repositories/event.repository.js:91:13) at async /app/immich/server/node_modules/.pnpm/bullmq@5.78.1/node_modules/bullmq/dist/cjs/classes/worker.js:589:32

    I can confirm I am still seeing this exact error message as well, currently on ghcr.io/imagegenius/immich:latest

  14. hydazz commented on Jul 30, 2026

    @hydazz
    Member

    try updating once 1cbc471 finishes, this should 100% fix this unsupported image format

  15. enice816 commented on Jul 31, 2026

    @enice816

    try updating once 1cbc471 finishes, this should 100% fix this unsupported image format

    Just was able to update and can confirm it is now working for me! Thank you for working through this!

  16. jamminjon commented on Jul 31, 2026

    @jamminjon

    Yes this finally fixed it! Thank you so much @hydazz I was worried I was going to have to convert a bunch of images to other file types.

  17. hydazz commented on Aug 2, 2026

    @hydazz
    Member

    🙂

  18. webysther commented on Aug 2, 2026

    @webysther
    Author

    try updating once 1cbc471 finishes, this should 100% fix this unsupported image format

    After this change someone tested with DNG files? For me dcraw is still required.

  19. hydazz commented on Aug 3, 2026

    @hydazz
    Member

    @webysther this seems camera/encoding dependent, DNG works for me.

    Do you have an example photo you can provide that 100% raises a error for you?

  20. webysther commented on Aug 3, 2026

    @webysther
    Author

    Do you have an example photo you can provide that 100% raises a error for you?

    Not really because after installing and generated the problem was gone. In future after removing the MOD this happens again I will report, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions