try
Code: Select all
background="Ah4mtPw.jpg"
frame="mo9LQCx.gif"
size=`convert $background -format "%wx%h" info:`
convert $background \( $frame -resize $size! \) -gravity center -compose over -composite result.png
If the two images' aspect ratios are different, you will have to distort one or the other. There is no way to make them fit without distortion, unless you crop or pad as the code I provided earlier.