Last active
July 8, 2016 12:45
-
-
Save Stasevi4/11187095 to your computer and use it in GitHub Desktop.
Optimize images in folder ( Magento optimize image) jpegoptim and optipng
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install jpegoptim | |
sudo apt-get install optipng | |
find /path/to/magento/ -iname '*.jpg' -exec jpegoptim --strip-all -p {} \; -exec chmod 755 {} \; -exec chown www-data:www-data {} \; | |
find . -iname '*.png' -exec optipng -o7 -preserve {} \; -exec chown www-data:www-data {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment