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

Question: Is there an option to log or output total byte savings? #86

Open
smrubin opened this issue Jul 12, 2019 · 3 comments
Open

Question: Is there an option to log or output total byte savings? #86

smrubin opened this issue Jul 12, 2019 · 3 comments

Comments

@smrubin
Copy link

smrubin commented Jul 12, 2019

Appreciate the work on the package.

Are there any options to log or output the total savings from using the plugin?

@Klathmon
Copy link
Owner

Not currently there isn't. But I love the idea of some verbose logging to output savings per image and maybe a total at the end.

I'm planning on spending some time next week to do a few small updates to this package, and if I have time I can add it then. If you wanted to give a crack at a PR I'd be happy to review and test that as well!

We already track the starting and final size so we can "abort" and use the original image if the "optimized" ends up bigger, so most likely it'll just be some logging and a running total somewhere in or around this function here.

@smrubin
Copy link
Author

smrubin commented Jul 16, 2019

Happy to take a stab at a PR within the next week. Thanks for the background info for getting started.

@xicond
Copy link

xicond commented Oct 10, 2020

Hi How's this idea ?
I need verbose log, since my script is stuck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants