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: Smaller png image #51641

Closed
achims1 opened this issue Mar 13, 2022 · 1 comment
Closed

image: Smaller png image #51641

achims1 opened this issue Mar 13, 2022 · 1 comment

Comments

@achims1
Copy link

achims1 commented Mar 13, 2022

If I have an 8-bit image, but after drawing the image, a lot of useless data is added, which will increase the bandwidth during transmission. Can we add some functions to the existing golang for users to choose? Your own image size and format, such as the website tinypng, compress png as needed, while ensuring that the image size remains unchanged

@gopherbot gopherbot added this to the pkgsite/unplanned milestone Mar 13, 2022
@seankhliao seankhliao changed the title x/pkgsite: Smaller png image image: Smaller png image Mar 13, 2022
@seankhliao seankhliao removed this from the pkgsite/unplanned milestone Mar 13, 2022
@seankhliao
Copy link
Member

Lossy compression is a complicated thing with many different possible algorithms.
This sort of thing seems better suited to live in a third party package.
See also https://go.dev/doc/faq#x_in_std

@golang golang locked and limited conversation to collaborators Mar 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants