-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Preserve color palette for PNG images #4416
Comments
I have made a repo to test the quality parameter of Golang's |
@aitva much appreciated. Note that imaging is only a shallow wrapper around |
Hi, I've spent some time toying with the
The good news is that there is an easy fix! We can reuse the original color palette on the reduced image.
There are more details at https://github.com/aitva/golang-png-encoding |
Thanks for this, really appreciated. |
This commit will force a reprocessing of PNG images with new names, so it is adviced to run a `hugo --gc` to remove stale files. Fixes gohugoio#4416
This commit will force a reprocessing of PNG images with new names, so it is adviced to run a `hugo --gc` to remove stale files. Fixes gohugoio#4416
This commit will force a reprocessing of PNG images with new names, so it is adviced to run a `hugo --gc` to remove stale files. Fixes gohugoio#4416
This commit will force a reprocessing of PNG images with new names, so it is adviced to run a `hugo --gc` to remove stale files. Fixes #4416
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Original post on Discourse.
On my website, the PNG images resized with Hugo are bigger than the original.
For example, with an image called
apercu-slack.png
:The original image:
The resized version:
The text was updated successfully, but these errors were encountered: