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

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

kiwionly opened this issue Feb 20, 2018 · 1 comment

Comments

@kiwionly
Copy link

@kiwionly 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
@odeke-em
Copy link
Member

@odeke-em odeke-em commented Feb 20, 2018

@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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants