1. Make sure you installed brew in your system.2. brew install pngquantDone! You can now use pngquant.