Created
March 16, 2018 07:33
-
-
Save samsargent/8cd23da46e08fb380bc0cba4e771ac43 to your computer and use it in GitHub Desktop.
Image Optimise Commands - pngquant jpegoptim
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
JPEGS | |
find uploads/ -type f -iname '*.jpg' -exec jpegoptim --strip-all {} + | |
PNG | |
find uploads/ -iname "*.png" -exec pngquant --force --quality=40-100 --skip-if-larger --strip --verbose \{} --output \{} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment