Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fixed quiet mode - #20

Merged
shssoichiro merged 1 commit into
oxipng:masterfrom
sethdusek:master
Mar 4, 2016
Merged

Fixed quiet mode#20
shssoichiro merged 1 commit into
oxipng:masterfrom
sethdusek:master

Conversation

@sethdusek

Copy link
Copy Markdown
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
Copy Markdown
Collaborator

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 oxipng:master Mar 4, 2016
shssoichiro pushed a commit that referenced this pull request Mar 4, 2016
@shssoichiro

Copy link
Copy Markdown
Collaborator

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

@sethdusek

Copy link
Copy Markdown
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
Copy Markdown

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

@shssoichiro

Copy link
Copy Markdown
Collaborator

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