Skip to content

Instantly share code, notes, and snippets.

@mathse
Created February 7, 2015 20:22
Show Gist options
  • Save mathse/f75c096b86adc600a388 to your computer and use it in GitHub Desktop.
Save mathse/f75c096b86adc600a388 to your computer and use it in GitHub Desktop.
resize pictures (jpg) on shell
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