klein.bash
1 # Reduces the size of a given image
2 # requires imagemagick to be installed
3 # it should have the convert command included
4 klein(){
5 img="${1:-`pwd`}"
6 out="${2:-${img}_lesser.jpg}"
7
8 convert "$img" -resize 60% -quality 70 "$out"
9 }