Last active
January 29, 2020 19:01
-
-
Save tsuriu/51523ffc53b9b7f1444a9ec50a1b5f52 to your computer and use it in GitHub Desktop.
Converting images for pedro
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| for img in $(find $1 -iname "*.jpg" -type f) | |
| do | |
| if [ $(du -sk $img | cut -f1) -ge 300 ] | |
| then | |
| convert $img -resize 50% $img | |
| echo $img | |
| fi | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment