Skip to content

Color Loss #160

Open
Open

Description

@sosso

Noticing that many of my images are experiencing color loss, even without lowering the quality or doing any resizing. Any idea what's causing it? Additionally, the proxied is about 200KB larger in this first instance:

Original:
fullcolor

Proxied:
colorloss

Activity

  1. willnorris commented on Sep 18, 2018

    @willnorris
    Owner

    If you're not changing the quality or resizing, what options are you passing to the proxy?

  2. jacobbudin commented on Aug 13, 2019

    @jacobbudin

    @sosso The original image has an embedded ICC color management profile, while the proxy output image does not. This absence explains the visual difference.

  3. datasage commented on Sep 2, 2026

    @datasage

    The cause here is that image/jpeg sends every APPn marker except APP0 and APP14 to decoder.ignore, and Encode writes no APP segments at all — so the source's embedded ICC profile can't survive Decode → Encode, and the untagged result gets rendered as sRGB. That's why a wide-gamut original comes back desaturated even with no resize and no quality change, as in the images above.

    Measured at /x80/ against a correct color-managed render: a Display P3 source is 3.64% RMSE off, an Adobe RGB source 4.93%.

    I've opened #505 with a passthroughICC flag (off by default) that carries the profile over, which brings both to ~0.3% — JPEG quantization noise. Happy to move the design discussion back here if that's preferred.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions