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

Leanify tool provides better lossless compression than Oxipng. #418

Closed
K0-RR opened this issue Aug 17, 2021 · 5 comments · Fixed by #504
Closed

Leanify tool provides better lossless compression than Oxipng. #418

K0-RR opened this issue Aug 17, 2021 · 5 comments · Fixed by #504

Comments

@K0-RR
Copy link

K0-RR commented Aug 17, 2021

https://github.com/JayXon/Leanify build from the source.
leanify -p vs oxipng -arvZ -o max --strip all --fix. Not all images were better compressed after using leanify on them, but overall results were better than Oxipng ones.

Assets in this repository were used for this test https://github.com/Waoweens/WaoTweaks.

@toscompliantname
This comment has been minimized.
@Sxderp
Copy link

Sxderp commented Mar 8, 2022

Would be nice if some improvements could be shown in oxipng. Unfortunately I don't know enough about the subject matter to help much. I don't want to switch to leanfiy because I feel it's too "unsafe" (strips metadata that could affect rendering).

@andrews05
Copy link
Collaborator

This should be resolved by #499, which will avoid changing RGBA to indexed in very tiny images like these. Note some of the images here are currently indexed and oxipng will not attempt to convert indexed to RGBA (which might be smaller), so it still isn't optimal but it does give a better overall result than leanify.

I did notice some of the images have some very faint partial transparency in them, which may be unintended. If you were to clean these up it should help improve compression, e.g. by allowing conversion to RGB+trns which might be smaller than RGBA.

@TPS
Copy link

TPS commented May 8, 2023

This should be resolved by #499

& further improved by #502. Thanks, @andrews05! 🙇🏾‍♂️

@andrews05
Copy link
Collaborator

@TPS & further improved again 😄

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 a pull request may close this issue.

5 participants