$ apt-get install imagemagick
Then you can use the convert command tool to execute massive image edits. For example to resize all images in a folder to 25%, you can use the following command:
$ for img in `ls *`; do convert $img -resize 25% "fb_"$img; done
I suggest you to take a look at the manual page of convert which is very informative.