Skip to content

Instantly share code, notes, and snippets.

@brandonmp
Created November 27, 2015 00:32
Show Gist options
  • Save brandonmp/9133372d1e51450b1cb0 to your computer and use it in GitHub Desktop.
Save brandonmp/9133372d1e51450b1cb0 to your computer and use it in GitHub Desktop.
shell script to resize every image in a directory
find /path/to/img/dir -type f -exec sh -c '
sudo convert -resize 150% "$0" "$0"
' {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment