papandreou / node-pngquant

The pngquant utility as a readable/writable stream
BSD 3-Clause "New" or "Revised" License
82 stars 23 forks source link

How to use the already installed system installation? #88

Closed DarkBitz closed 3 years ago

DarkBitz commented 3 years ago

How to use the already installed system installation? Is there any environment variable for this case?

papandreou commented 3 years ago

Try the static PngQuant.setBinaryPath method: https://github.com/papandreou/node-pngquant/blob/8e745ad89da7d95239efcaf88ec010e7f077404a/lib/PngQuant.js#L49-L51