yjh0502 / erl-brotli

Brotli encoder NIF for Erlang
Other
29 stars 17 forks source link

How to change compression level? #5

Closed alantliang closed 3 years ago

alantliang commented 4 years ago

Hi, thank you for creating this package. I was wondering how you change the compression level from 1-11? Thanks.

yjh0502 commented 4 years ago

@alantliang You could use brotli:encode/2

hauleth commented 3 years ago

Yes, there is a way to pass 2nd argument to brotli:encode/2 that is a map that can contain quality key which is compression level from 0 to 11.