Installation

To complete the installation you need to have access to the server to install software. This additional software is needed to optimize the images. PHP by itself is not sufficient to do this task.

1. Install the add-on via concrete5.
2. Install at least one of the following optimization tools:

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 apt-get install gifsicle
sudo npm install -g svgo

(in case npm is not installed, go to https://nodejs.org/en/download/package-manager/)

Here's how to install all the optimizers on CentOS:

sudo yum install -y jpegoptim
sudo yum install -y optipng
sudo yum install -y pngquant
sudo yum install -y gifsicle
sudo npm install -g svgo

(in case npm is not installed, go to https://nodejs.org/en/download/package-manager/)

And here's how to install the binaries on macOS (using Homebrew):

brew install jpegoptim
brew install optipng
brew install pngquant
brew install svgo
brew install gifsicle


3. Go to the settings page (System & Settings / Files / Image Optimizer) to configure Image Optimizer.
4. Go to Automated Jobs (System & Settings / Optimization / Automated Jobs) and start the Image Optimizer job.