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

perf: png optimisations - saving approx 934.92 KB #430

Merged
merged 3 commits into from
Dec 14, 2022

Conversation

mikeirvingweb
Copy link
Contributor

๐Ÿ–ผ๏ธ Lossless PNG Image Optimisations, comparing sizes from PNGOUT, OptiPNG, and DeflOpt algorithms.

๐Ÿ‘Ÿ Smaller Payload Apps, Faster Load Times.

@Xiaoy312
Copy link
Contributor

Nice & thanks for the PR.

Copy link
Contributor

@Xiaoy312 Xiaoy312 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain a bit the tooling used for the optimization, so we can apply the same treatment in the future?

@mikeirvingweb
Copy link
Contributor Author

@Xiaoy312 when PNGs are made, there is a lot of wasted data in the file, typically.

There are several algorithm's that can reorder and reduce the data, saving file size.

OptiPNG

DeflOpt

PNGOUT

are 3 of them. all are 'lossless' - the resultant image is identical.

...and there's tools that run all 3, then compare vs. the original file to pick the best result.

I use PNGGauntlet on Windows, but many others are available.

@Xiaoy312 Xiaoy312 merged commit 779665d into unoplatform:main Dec 14, 2022
@welcome
Copy link

welcome bot commented Dec 14, 2022

Congrats on your first pull-request! We โค the people who are involved in this project, and weโ€™d love to pay it forward by sending you some swag. If you have any feedback (or ideas how to improve Uno as a open-source project) please open a feedback issue.
giphy
Merci beaucoup ๐Ÿ‘‹

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

Successfully merging this pull request may close these issues.

2 participants