- install jpegoptim and optipng
- optimize all your images in /var/www
To run the script :
#For debian/Ubuntu
bash <(wget --no-check-certificate -O - https://raw.githubusercontent.com/VirtuBox/wp-optimize/master/deb-optimize.sh)
wget -qO optimize.sh
#For Centos/RedHat
cd /var/www
bash <(wget --no-check-certificate -O - https://raw.githubusercontent.com/VirtuBox/wp-optimize/master/centos-optimize.sh)