Created
January 22, 2020 14:02
-
-
Save hewersonfreitas/69eb87d4099eb962d63ae4d1da174fa1 to your computer and use it in GitHub Desktop.
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
#### Optimize Images with jpegoptim, optipng, advpng | |
>> jpg | |
find -name '*.jpeg' -print0 | xargs -0 sudo -u www-data jpegoptim --strip-all --max=80 | |
find -name '*.jpg' -print0 | xargs -0 sudo -u www-data jpegoptim --strip-all --max=80 | |
>> png | |
find -name '*.png' -print0 | xargs -0 sudo -u www-data optipng -o7 -f4 -strip all -quiet | |
find -name '*.png' -print0 | xargs -0 sudo -u www-data optipng -o7 -f4 | |
find -name '*.png' -print0 | xargs -0 sudo -u www-data advpng -z -4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment