Skip to content

Instantly share code, notes, and snippets.

@leemour
Created October 11, 2018 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leemour/21aca6da08ce0bbef5092d29a240a463 to your computer and use it in GitHub Desktop.
Save leemour/21aca6da08ce0bbef5092d29a240a463 to your computer and use it in GitHub Desktop.
Optimize png images with pngquant and optipng
find . -name '*.png' -exec pngquant -ext .png -force 256 {} \;
find -type f -name "*.png" -exec optipng \-o2 \-strip all '{}' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment