Files
tldr/pages.zh/common/brotli.md

24 lines
712 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# brotli
> 使用 Brotli 压缩进行文件的压缩/解压缩。
> 更多信息:<https://github.com/google/brotli>。
- 压缩文件,在文件旁边创建一个压缩版本:
`brotli {{path/to/file}}`
- [d]解压缩文件,在文件旁边创建一个未压缩版本:
`brotli -d {{path/to/file.br}}`
- 压缩文件并指定 [o]utput 文件名:
`brotli {{path/to/file}} -o {{path/to/compressed_output_file.br}}`
- [d]解压缩 Brotli 文件并指定 [o]utput 文件名:
`brotli -d {{path/to/compressed_file.br}} -o {{path/to/output_file}}`
- 指定压缩质量1=最快最差11=最慢(最好)):
`brotli -q {{11}} {{path/to/file}} -o {{path/to/compressed_output_file.br}}`