The Image Compressor offers two different Drivers "TinyPNG API" or "Image Optimization tools"
The Optimization Tool will use these optimizer's install globally and you are done or you can enter the path of these binaries by editing the Image Compressor Tool from admin panel.
Here's how to install all the optimizers on Ubuntu:
sudo apt-get install jpegoptim sudo apt-get install optipng sudo apt-get install pngquant sudo npm install -g svgo@1.3.2 sudo apt-get install gifsicle sudo apt-get install webp
And here's how to install the binaries on MacOS (using Homebrew):
brew install jpegoptim brew install optipng brew install pngquant brew install gifsicle brew install webp npm install -g svgo@1.3.2
And here's how to install the binaries on Fedora/RHEL/CentOS:
sudo dnf install epel-release sudo dnf install jpegoptim sudo dnf install optipng sudo dnf install pngquant sudo npm install -g svgo@1.3.2 sudo dnf install gifsicle sudo dnf install libwebp-tools