Skip to content

PNG's with embedded ICC color profile not rendering correctly #174

@LeonNamowitz

Description

@LeonNamowitz

Describe the bug
For reasons* I have a bunch of 16 bit PNG's with an embedded ICC profile, namely BT.2100 PQ, and those are showing without the color profile applied in Photofield. This means the images just look entirely wrong.
Windows (Photos) and Chrome can render these PNG's properly.

Now from what I gather you never actually render the original file but just the tiles even past full screen but I'm not sure how that works exactly. Maybe it can be fixed with a flag in ffmpeg? Maybe not.

some test files

To Reproduce
Steps to reproduce the behavior:

  1. Look at a specified PNG
  2. See washed out colors
  3. Right click to open the image in a new tab
  4. See the proper color managed image (using Chrome)

Expected behavior
Account for embedded color profile in PNG's before rendering.

Screenshots:

Photofield fullscreen

Image

Original image

Image

Metadata

Image

Desktop (please complete the following information):

  • OS: Win11 25H2
  • Browser: Chrome
  • Version: Version 144.0.7559.97 (Official Build) (64-bit)

Additional context
reasons*: The mentioned reasons are that these all originated as HDR screenshots of games using Shadowplay which saves them as .jxr's. But JXR is the most cursed image format on the planet so I'm converting them to PNG + color profile using this.
For example in Immich, this is a problem for the thumbnails as well but once you click on it Immich loads the original file which then shows up correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions