Skip to content

Instantly share code, notes, and snippets.

@cheh
Last active June 15, 2018 12:47
Show Gist options
  • Save cheh/c969999abea791a3ca92f14ef4ec829f to your computer and use it in GitHub Desktop.
Save cheh/c969999abea791a3ca92f14ef4ec829f to your computer and use it in GitHub Desktop.
JPEG
find . -iname "*.jpg" -exec jpegoptim --strip-all -m85 -o -p {} \; - ok
find ./ -name "*.jpg" -type f -exec jpegtran -copy none -optimize -progressive -outfile {} {} \;
jpegoptim.exe --strip-all -m85 -o -p *.jpg
PNG
find . -iname "*.png" -print0 |xargs -0 optipng -o7 \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment