Skip to content

Saving image with non-sRGB color profile as .JXL results in weird saturation #21

@rickbrew

Description

@rickbrew

This uses Facebook's "c2" color profile, but it doesn't seem to matter which color profile I convert it to unless it's sRGB. Both DP3 and ProPhoto exhibit similar issues.

When loading the image, if I break into the debugger at the point where the plugin is writing pixel values to the document, the values are wrong. Instead of R=128,G=150,B=147 I see R=56,G=76,B=73 for the pixel at x=0,y=0. This makes me think maybe there's a busted linear/companded conversion somewhere.

I thought I'd made a mistake in some of the new PDN 5.2 code, or in my code for updating pdn-jpegxl for 5.2, but this also happens in PDN 5.1.11

Strangely, if I open the .JXL in Krita, it looks correct but the color values are off-by-1, e.g. R=129 instead of R=128.

tiled--ali-pazani-by6kqgS6DOI-unsplash.jpg.zip

Image Image

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