for x in $(ls); do tar -Scvzf $x.tar.gz $x ; done
or
find . -name "*img" -exec tar -Scvzf {}.tar.gz {} \;