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

Fixed quiet mode #20

Merged
merged 1 commit into from
Mar 4, 2016
Merged

Fixed quiet mode #20

merged 1 commit into from
Mar 4, 2016

Conversation

SethDusek
Copy link
Contributor

I couldn't seem to figure out why my images were coming out as corrupted even though they were fine. Turns out oxipng was still printing information about the image such as the reduction even though it was in --quiet mode and --stdout, and that broke the image.

Anyways this does some additional checking for opts.verbosity before it prints stuff

@shssoichiro
Copy link
Owner

Thanks for the pull request! I'll get this merged right away.

shssoichiro added a commit that referenced this pull request Mar 4, 2016
@shssoichiro shssoichiro merged commit 5a081dc into shssoichiro:master Mar 4, 2016
shssoichiro pushed a commit that referenced this pull request Mar 4, 2016
@shssoichiro
Copy link
Owner

Do you think it would be necessary/useful to enable quiet mode automatically whenever stdout is selected?

@SethDusek
Copy link
Contributor Author

I think so, yes, since most people would probably use -q so the only thing in stdout is the image itself and nothing more so they don't have to parse it and remove the text. So I think maybe you should enable quiet mode when stdout is also enabled

@CounterPillow
Copy link

Alternatively the program could output status messages to stderr instead of stdout, like curl does.

@shssoichiro
Copy link
Owner

This is true. Maybe that would be a better option.

shssoichiro pushed a commit that referenced this pull request Mar 4, 2016
Makes it friendlier with --stdout option
See #20 for discussion
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.

3 participants