Trying to insert PNGs over certain image, scaled down to fit at center left position

50 Views Asked by At

I'm using Windows and I can't figure out how to batch insert images over a particular background image.

Here's what I'm trying to do: https://i.stack.imgur.com/IPDuP.jpg

Here's the background image alone (1280x390): https://i.stack.imgur.com/w9kvi.jpg

Here's the folder with the several hundreds of images I would like to combine (each file is much larger so must fit in height with the same aspect ratio): https://i.stack.imgur.com/qAqKt.jpg

Any help would be greatly appreciated (I am using Windows).

1

There are 1 best solutions below

0
Mark Setchell On

The command for resizing a single foreground image to 360px high and compositing in the bottom-left of a background image will be something like:

magick FOREGROUND.PNG -resize x360 BACKGROUND.PNG +swap -gravity southwest -composite RESULT.PNG

Experiment with that, then follow @Mofi 's fine advice about looking up the documentation about FOR loops.