ImageMagick

Thumbnails
convert -size 800x600 Big.jpg -resize 100 small.jpg for file in *.JPG; do convert -size 1024 $file -resize 300 sm-$file.jpg; done

Animated GIFs
convert -delay 20 frame*.jpg animation.gif