A few commands for image manipulation on the command line.
The mogrify tool is part of imagemagick
# sudo apt-get install imagemagick
Resize images 50%
# find . -name '*.png' -execdir mogrify -resize 50% {} \;
Compress
# find . -name '*.png' -execdir mogrify -format jpg -quality 95 {} \;