Skip to content

Instantly share code, notes, and snippets.

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