You may want to take a look at irfanview which is got quite powerful command-line support for manipulating images. It can be run in silent mode, from perl, and it all works quite well.
To resize image, use the resize-switch:
(From the help docs) /resize=(w,h) - resize input image to w (width) and h (height)