Skip to content

[BUG] VipsOperation: class "icctransform" not found on cuda-v2.6.1-ig155 (thumbnail generation fails for JPEGs with ICC profiles) #675

@guptro

Description

@guptro

Environment

  • Image: ghcr.io/imagegenius/immich:cuda
  • Version: v2.6.1-ig155 (Build-date: 2026-03-20)
  • Host: Unraid

Bug

Thumbnail generation (AssetGenerateThumbnails) fails in bulk for JPEGs with embedded ICC color profiles with the following repeating error:

VipsOperation: class "icctransform" not found
VipsJpeg: premature end of JPEG image
Error: VipsOperation: class "icctransform" not found
  at Sharp.toBuffer (.../sharp/lib/output.js:163:17)
  at MediaRepository.decodeImage
  at async MediaService.decodeImage
  at async MediaService.extractOriginalImage
  at async MediaService.generateImageThumbnails
  at async MediaService.handleGenerateThumbnails

Investigation

  • liblcms2-2 (2.14-2build1) is already installed in the container — this is not the issue
  • The problem is that sharp's bundled static libvips was compiled without --with-lcms, so even though the system library exists, icctransform is not available as a vips operation
  • This affects the majority of JPEG thumbnail jobs, not just a few files

Reference

PR #548 / #550 (fix: sharp install) was intended to address the sharp/libvips build issue and was merged on Apr 25, 2025. However the icctransform errors persist on the current cuda tag (v2.6.1-ig155).

The main tag may be unaffected — this appears specific to the cuda build variant.

Expected Behavior

Thumbnail generation succeeds for JPEGs with embedded ICC color profiles. The icctransform vips operation should be available, which requires libvips to be compiled with lcms2 support.

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