Skip to content

Instantly share code, notes, and snippets.

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