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.

Leave a Reply