Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mrkpatchaa/8e7a6a60cc252bff4881c2c42a4e36d2 to your computer and use it in GitHub Desktop.
Save mrkpatchaa/8e7a6a60cc252bff4881c2c42a4e36d2 to your computer and use it in GitHub Desktop.
Optimise your pngs from the terminal in OSX

JPG:
$ brew install jpegoptim
$ find . -name "*.jpg" -exec jpegoptim -m80 -o -p --strip-all {} \;

- PNG:
$ brew install optipng
$ find . -name "*.png" -exec optipng -o7 {} \;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment