Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # PNG Files
- ```
- find -iname '*.png' -exec optipng -o6 -preserve '{}' \;
- ```
- # JPG Files
- ```
- find -iname '*.jpeg' -o -iname '*.jpg' | xargs jpegoptim -o -p -t --strip-all --all-progressive
- ```
- # GIF Files
- ```
- find -name '*.gif' -exec gifsicle --batch -O '{}' \;
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement