Skip to content

image/jpeg: encoding with RGB profile causing loss of image saturation #23936

@kiwionly

Description

@kiwionly

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

1.9.2

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

windows 10

What did you do?

I encoding a JPEG file with RGB profile, some how the encoding result look like not correct, I using gimp and it compress correctly, the output result show a bit darker then the original image.

here the code from go playground

Original image

de5639288c6fdd52367180fdcbd7a79672dbdf1d84e11bf2a497114397070bbb

After encode

out

The images diff

download

What did you expect to see?

berry_gimp

What did you see instead?

lanczos3

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions