convert -geometry 100x200! img1.png img2.png

The exclamation point allows the aspect ratio to be changed, and the resulting image will be exactly the specified size.

For automated command-line image processing, ImageMagick is the bomb. (continued…)