Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kiwionly opened this issue Feb 20, 2018 · 1 comment
Open
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@kiwionly
Copy link

kiwionly commented Feb 20, 2018

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

@ALTree ALTree changed the title image/jpeg encoding with RGB profile causing lost of image saturation image/jpeg: encoding with RGB profile causing lots of image saturation Feb 20, 2018
@ALTree ALTree added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Feb 20, 2018
@odeke-em
Copy link
Member

/cc @nigeltao @fogleman

@kiwionly kiwionly changed the title image/jpeg: encoding with RGB profile causing lots of image saturation image/jpeg: encoding with RGB profile causing lost of image saturation Feb 20, 2018
@4ad 4ad changed the title image/jpeg: encoding with RGB profile causing lost of image saturation image/jpeg: encoding with RGB profile causing loss of image saturation Feb 20, 2018
@ianlancetaylor ianlancetaylor added this to the Unplanned milestone Mar 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

4 participants