imagmagick package probably does what you need. It's command line based, but that shouldn't matter. Try this:
Code:
convert -geometery [new size] sourcefile destfile
convert -geometery 1024x768 /home/usr/temp.jpg /home/usr/temp2.jpg
man convert / imagemagick for more options... there is a ton.