Created
February 7, 2015 20:22
-
-
Save mathse/f75c096b86adc600a388 to your computer and use it in GitHub Desktop.
resize pictures (jpg) on shell
This file contains 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
for i in $(ls -1 *.jpg | sed 's/ /;/g'); do | |
convert -resize 800x800 "$(echo $i | sed 's/;/ /g')" "/path/to/destiantion/$(echo $i | sed 's/;/ /g')" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment