Skip to content

Instantly share code, notes, and snippets.

@jvanja
Last active September 17, 2021 14:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jvanja/17ba9bfea2bd50813518e7f52f906d35 to your computer and use it in GitHub Desktop.
Save jvanja/17ba9bfea2bd50813518e7f52f906d35 to your computer and use it in GitHub Desktop.
Finds all pngs in "*/images" folders and executes pngquant on them overwriting the original files.
find ./ -path '*/images/*.png' -type f -exec pngquant -f --ext .png {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment