Skip to content

PNG with Adobe RGB ICC profile color changed after decode-encode round trip #3072

Description

@soyosaki

Currently, loading a PNG with Adobe RGB ICC profile to DynamicImage then save it unchanged to a PNG causes a golden color becomes more green-ish.

This is a sample input:

Image

And this is the corresponding output:

Image

Expected

The color to be unchanged on display throughout the round trip.

Actual behaviour

Output image should be more green-ish.

Reproduction steps

Suppose the given input image is saved at project root as input.png, run cargo run --release --example convert -- input.png output.png. One should get an image that visually appears like the provided output image.

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