Put One Image On Another Image While Resizing It With ImageMagick
magick convert background.png foreground.png - gravity NorthWest - geometry 100x50+20+80 - composite output.png
This resizes foreground.png to 100x50 pixels and puts it on the background.png image 20 pixels over and 80 pixels down from the top left.