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

jpeg re-encoding at default quality #333

Closed
zanmato opened this issue May 18, 2021 · 1 comment
Closed

jpeg re-encoding at default quality #333

zanmato opened this issue May 18, 2021 · 1 comment
Assignees

Comments

@zanmato
Copy link

zanmato commented May 18, 2021

Version 3.10 (9fa39af) introduces a call to jpeg.Encode for all jpeg images without a quality setting. This causes the jpeg to be reencoded in worse quality, at least in our case. Since if no quality option is specified the quality will be set to the default, which is 75 (https://golang.org/pkg/image/jpeg/#pkg-constants).
Ideally the image shouldn't be re-encoded at all. Is it possible to introduce an option for this? Along with a quality option.

@hhrutter hhrutter self-assigned this May 18, 2021
@hhrutter
Copy link
Collaborator

Understood.
Let me think about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants