title: Put image on top of other image, but resize to fit first
body: <p>I have two pngs. One is of unknown size (but always square), the 2nd is 1024x1024 and mostly transparent. I want to put the 2nd on top of the first, but first scale it down to the size of the first.</p>
  
  <p>E.g. image1.png is 100x100, overlay.png is 1024x1024. The resulting image size is 100x100 with the overlay scaled down to 100x100 and put on top of the source file.</p>
  
  <p>So far I got this: </p>
  
  <pre><code>magick convert ~/Downloads/Test\ icon.png  res/drawable/icon.png -gravity center -composite  ~/result.png
  </code></pre>
  
  <p>But the resulting image is 1024x1024 and the original is tiny somewhere in the center.</p>