Magento Image Optimisation InstallationImage Optimisation

« Back to Image Optimisation

Magento 1

  1. Login to the Magento Admin and disable the cache. If you are using the Magento Compiler, disable this too.
  2. Extract the ZIP file and merge the files with your Magento site using FTP or SFTP. If a modman file is present and you don't want to use modman to install the module you can ignore this file.
  3. Re-enable the Magento cache and then flush it. If you use the compiler, recompile before enabling it.

You can view the output of at System > Tools > for Magento 1 uses the Magento CRON to optimise images automatically. If your Magento CRON is setup and running, will also run. If your Magento CRON is not setup, you can find tutorials online explaining how to do this.

Alternatively you can setup to run manually via the terminal by running the shell/smushit.php script.

Magento 2

  1. Extract the extension files from the downloaded ZIP file.
  2. Create a folder on your Magento site at app/code/FishPig/ImageOptimiser and upload the extracted ZIP files.
  3. In the terminal, run the following command:php bin/magento module:enable FishPig_ImageOptimiser && php bin/magento setup:upgrade

To run the image optimisation system, enter the following command in the terminal:

php bin/magento fishpig:image_optimiser:run --limit=10

To view a report of all images processed, enter the following command in the terminal

php bin/magento fishpig:image_optimiser:report

Image Optimisation