8000 Add nclx->icc colour management to heifload · Issue #3912 · libvips/libvips · GitHub
[go: up one dir, main page]

Skip to content
Add nclx->icc colour management to heifload #3912
Open
@mertalev

Description

@mertalev

Bug report

HDR AVIF input images look very desaturated in the output image. This happens for both srgb and rgb16 pipeline colorspaces and both srgb and p3 target ICC profiles. It also occurs when outputting to any of JPEG, WebP, AVIF or PNG (these are the outputs formats I tested).

To Reproduce
Steps to reproduce the behavior:

  1. Use the raw0016-positive.avif image from this zip
  2. Convert to any of JPEG, WebP or PNG
  3. Note the desaturated colors

Expected behavior

When outputting to JPEG or WebP, the colors should be somewhat representative of the input image (minus the HDR, of course). When outputting to 10-bit AVIF, it should have roughly the same colors including HDR.

Actual behavior

The output image is unnaturally desaturated.

Screenshots

Apple Preview:

raw0016-positive-preview

libvips:

immich-thumbnail

Environment
(please complete the following information)

  • OS: Debian Bookworm
  • Vips: 8.15.2
  • sharp 0.33.3
  • libheif 1.15.1 (also tried a build with 1.17.6 with same results)

Additional context

libheif has a convert_hdr_to_8bit setting that's referenced here, but doesn't seem to be used anywhere.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0