Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output is bigger than expected #16

Open
philipahlberg opened this issue Mar 23, 2017 · 2 comments
Open

Output is bigger than expected #16

philipahlberg opened this issue Mar 23, 2017 · 2 comments

Comments

@philipahlberg
Copy link

An example of mine: a javascript-file that was 485kb before compression is 299kb after compression with brotli.js. The same file is 94.4kb when compressed 'on-the-fly' with ngx_brotli. I'm using quality 11 compression.

Steps to reproduce would be to install ngx_brotli on an nginx server, and compare file-sizes with the result of the following:

var fs = require('fs')
var brotli = require('brotli')
var result = brotli.compress(someFile, { quality: 11 })
fs.writeFile(someDir, result)

@tomByrer
Copy link

Interesting... have you tried other files? Not just JS, but perhaps JSON, SVG, MarkDown/plain text, etc?

@yux0
Copy link

yux0 commented Mar 27, 2018

result is byte array and you write in string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants