Closed ckrad closed 5 years ago
If that's a valid switch, it should work. You could also try ['--quality', 60]
, does that help?
i tried but not work
Could you try adding a test based on eg. https://github.com/papandreou/node-pngquant/blob/master/test/PngQuant.js#L17-L26 that demonstrates the problem?
This issue is old but if anyone is curious, here is how you can pass in configs:
const pngQuanter = new PngQuant(['--quality', '70-90', '-']);
Last hyphen is used for reading and writing from stdin and stdout.
Should be addressed by #12.
how can i pass config? i pass ['--quality=60'] it not work