Skip to content

Instantly share code, notes, and snippets.

@vamdt
Created December 15, 2014 07:26
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 vamdt/557e6a80e3aef0dcfada to your computer and use it in GitHub Desktop.
Save vamdt/557e6a80e3aef0dcfada to your computer and use it in GitHub Desktop.
# find all png-suffix images in current dir and sub dirs.
# use sips resize image size to 262 * 82
# and make their name to *.small.png
find . -type f -name "*.png" -exec sips -z 82 262 '{}' --out '{}'.small.png ';'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment