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

Parameter for outfile --outfile #17

Open
diego-mathis opened this issue Jul 5, 2019 · 2 comments
Open

Parameter for outfile --outfile #17

diego-mathis opened this issue Jul 5, 2019 · 2 comments

Comments

@diego-mathis
Copy link

It would be nice if there was a param to define the output file.
While its possible to use "-c" , it seems I then do not get any info from the program.

@corbin-r
Copy link

So after lookin into this, it appears as though the help does define a --c flag which outputs to stdout (as defined in zopfli_bin.c:695) but doesn't allow a file name.
I'm working on a quick fork fix for this that will simply add a controlled output option :)

@MrKrzYch00
Copy link
Owner

MrKrzYch00 commented Jun 22, 2020

Yes, --c outputs to stdout as per original work. The custom output filename is not supported as a command line parameter, again as per original work. Of course supporting such parameter is just a matter of some if and default value. For now, however, you could use output assigning from directory name with --dir switch. It compresses files inside the directory you pointed it to without the root directory itself:

  • location: directory2020\file2020.txt
  • command: zopfli --zip --dir directory2020
  • result: directory2020.zip with file2020.txt inside

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

No branches or pull requests

3 participants