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

Summary option to display total percentage and byte reduction #678

Open
jonnyawsom3 opened this issue Feb 12, 2025 · 2 comments
Open

Summary option to display total percentage and byte reduction #678

jonnyawsom3 opened this issue Feb 12, 2025 · 2 comments
Labels
T-Feature Requests for a new feature to be added

Comments

@jonnyawsom3
Copy link

I'm wanting to move away from ECT due to a lack of updates and questionable decisions regarding defaults, however the per-file statistics of oxipng makes for quite a cluttered window and rather hard to see how much of an overall improvement it had. -q stops the flood of file paths, but doesn't display anything at all.

I thought I'd ask about a -S or --summary that would print similar to ECT, allowing for quick comparisons. Something like

Processed 107 files
Could not optimize 12 files further
Saved 192.09MB out of 774.25MB (24.81% Smaller)
@TPS
Copy link

TPS commented Feb 13, 2025

This seems complementary to #419, which was solved differently via #488#489, but didn't quite do that or this.

@andrews05 andrews05 added the T-Feature Requests for a new feature to be added label Feb 20, 2025
@andrews05
Copy link
Collaborator

andrews05 commented Feb 20, 2025

Hi @jonnyawsom3
This could be a useful feature to have. Unfortunately right now, both this and the json output proposed in #583 require a breaking change to the API before they can be implemented*. So it won't happen before v10.

*Specifically, the optimize function will need to return the input and output sizes so that main.rs can aggregate them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Feature Requests for a new feature to be added
Projects
None yet
Development

No branches or pull requests

3 participants