Skip to content

Instantly share code, notes, and snippets.

@morewry
Created November 22, 2017 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morewry/9a49e925244937d409e0ef64b5324098 to your computer and use it in GitHub Desktop.
Save morewry/9a49e925244937d409e0ef64b5324098 to your computer and use it in GitHub Desktop.
run mozjpegtran on all jpgs in current directory
find -L $PWD -type f -name "*.jpg" -print0 | xargs -0 -I'{}' mozjpegtran -outfile '{}'.out.jpg -optimise -copy none '{}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment