Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mimol91/300691aa181ec88fecf4cce592d459f7 to your computer and use it in GitHub Desktop.
Save mimol91/300691aa181ec88fecf4cce592d459f7 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