I am trying to add several PNG files that have different sizes to one combined image.
I want the individual βlayersβ to be centered.
This is what I am trying to achieve in a pictorial form:
Simple:
convert a.png b.png c.png -flatten combined.png
leads to:
... and I managed to center everything by manually specifying the offsets ( '-page +X+Y'
), but I was wondering if there was an automatic way to achieve this.
Hamza source share