-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Pass stdin to stdout if optimization was not possible #50
Comments
I Just got this same thing trying to make this into a serverless function. |
going to try this out with a build.
|
See tjko#50 Fixes tjko#50 * Read `STDIN` into buffer `inbuf` * Modified flags so that `--stdout` (enabled by using `--stdin`) also enforces quiet & lowers verbosity * Added checks to compensate for `fclose` and `free` calls * Added output logic in the case that input stream is smaller than optimized output stream Signed-off-by: Lewis Cowles <lewiscowles@me.com>
Right I've a patch for this. It was a bit more of a pain than I first thought, but it now works on my PC and I'm pretty happy |
@KrylosovM @tjko The latest commit adds a command line argument for It does change the behaviour so that |
This has now been implemented with commit: 05c3f85 |
Would be great if input file from stdin passed to stdout when result of optimization is larger than original.
At the moment
--stdin
option enables--force
option that forces optimized file to stdout, even if it is larger than original.The text was updated successfully, but these errors were encountered: