2021-08-15 18:59:09 +01:00
|
|
|
# brotli
|
2020-12-12 19:52:03 +00:00
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
> Compress/uncompress files with Brotli compression.
|
2020-12-12 19:52:03 +00:00
|
|
|
> More information: <https://github.com/google/brotli>.
|
|
|
|
|
|
|
|
- Compress a file, creating a compressed version next to the file:
|
|
|
|
|
2023-04-23 12:27:16 +01:00
|
|
|
`brotli {{path/to/file}}`
|
2020-12-12 19:52:03 +00:00
|
|
|
|
2024-02-19 14:13:42 +00:00
|
|
|
- [d]ecompress a file, creating an uncompressed version next to the file:
|
2020-12-12 19:52:03 +00:00
|
|
|
|
2023-04-23 12:27:16 +01:00
|
|
|
`brotli -d {{path/to/file.br}}`
|
2020-12-12 19:52:03 +00:00
|
|
|
|
2024-02-19 14:13:42 +00:00
|
|
|
- Compress a file specifying the [o]utput filename:
|
2020-12-12 19:52:03 +00:00
|
|
|
|
2023-04-23 12:27:16 +01:00
|
|
|
`brotli {{path/to/file}} -o {{path/to/compressed_output_file.br}}`
|
2020-12-12 19:52:03 +00:00
|
|
|
|
2024-02-19 14:13:42 +00:00
|
|
|
- [d]ecompress a Brotli file specifying the [o]utput filename:
|
2020-12-12 19:52:03 +00:00
|
|
|
|
2023-04-23 12:27:16 +01:00
|
|
|
`brotli -d {{path/to/compressed_file.br}} -o {{path/to/output_file}}`
|
2020-12-12 19:52:03 +00:00
|
|
|
|
2024-02-19 14:13:42 +00:00
|
|
|
- Specify the compression quality (1=fastest (worst), 11=slowest (best)):
|
2020-12-12 19:52:03 +00:00
|
|
|
|
2023-04-23 12:27:16 +01:00
|
|
|
`brotli -q {{11}} {{path/to/file}} -o {{path/to/compressed_output_file.br}}`
|