2025-03-14 21:59:59 -06:00
|
|
|
# brotli
|
|
|
|
|
|
|
|
|
|
> Compress/uncompress files with Brotli compression.
|
2025-04-03 20:36:56 -06:00
|
|
|
> More information: <https://manned.org/brotli>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Compress a file, creating a compressed version next to the file:
|
|
|
|
|
|
|
|
|
|
`brotli {{path/to/file}}`
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Decompress a file, creating an uncompressed version next to the file:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`brotli {{[-d|--decompress]}} {{path/to/file.br}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Compress a file specifying the output filename:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`brotli {{path/to/file}} {{[-o|--output]}} {{path/to/compressed_output_file.br}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
- Decompress a Brotli file specifying the output filename:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`brotli {{[-d|--decompress]}} {{path/to/compressed_file.br}} {{[-o|--output]}} {{path/to/output_file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Specify the compression quality (1=fastest (worst), 11=slowest (best)):
|
|
|
|
|
|
2025-04-03 20:36:56 -06:00
|
|
|
`brotli {{[-q|--quality]}} {{11}} {{path/to/file}} {{[-o|--output]}} {{path/to/compressed_output_file.br}}`
|