Magento Image Optimization

Magento Image Optimization

First you need a ssh access to the server.

Second – install jpegtran / optipng / gifsicle utilities – refer to your platform packages for the right one.

Idea is simple – iterate over all images / backup / optimize / swap backups.

Here it is:

Please suggest a better way to optimize images in bulk in comments if you know one.

Although gtmetrix still complains about some of the images not optimized it is the closest i can get so far.