1

Is there any way to Optimize all product images under media folder directly on production server.

I was thinking to do by Gulp or Grunt but both required lots of installation on server which I think would not be the best workaround.

Is there any better solution you guys can suggest me?

Monkviper
  • 111
  • 3

2 Answers2

1

You can use the following plugin which doesn't require installation if any utility on your server at all which is great because most of the hosting companies won't allow to install utilities especially if you are on shared hosting.

This module uses cron job to compress your Magento catalog images instead of doing on the fly which could slow down your website. In the admin configuration you can define how many product images you want to optimize or compress the images at a time. It also support multiple well known APIs including Resmush.it, ImageOptim and Kraken API.

https://www.scommerce-mage.com/magento-image-optimizer.html

Hope it helps!

stevensagaar
  • 781
  • 12
  • 27
0

To optimize all images, you can set the path to all images. The module works with cron job. Image optimization is done by gifsicle, jpegtran and OptiPNG, help the rating from Google Insights, find more details here.

St3phan
  • 2,907
  • 1
  • 25
  • 49