Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Put One Image On Another Image While Resizing It With ImageMagick

Code

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.