diff --git a/pages/common/brotli.md b/pages/common/brotli.md new file mode 100644 index 0000000000..7edada2bd5 --- /dev/null +++ b/pages/common/brotli.md @@ -0,0 +1,24 @@ +# Brotli + +> Compress/uncompress files with brotli compression. +> More information: . + +- Compress a file, creating a compressed version next to the file: + +`brotli {{file.ext}}` + +- Decompress a file, creating an uncompressed version next to the file: + +`brotli -d {{file.ext}}.br` + +- Compress a file specifying the output filename: + +`brotli {{file.ext}} -o {{compressed_file.ext.br}}` + +- Decompress a brotli file specifying the output filename: + +`brotli -d {{compressed_file.ext.br}} -o {{file.ext}}` + +- Specify the compression level. 1=Fastest (Worst), 11=Slowest (Best): + +`brotli -q {{11}} {{file.ext}} -o {{compressed_file.ext.br}}`