Code: Select all
convert ( -label "top" image1.png -background none -mosaic ) ( -label "middle" image2.png -background none -mosaic ) ( -label "background" image3.jpg -mosaic ) ( -clone 0--1 -mosaic ) -reverse "output.psd"
The first 2 images I use are png's because they have transparent pixels (in fact, most of the two images are transparent, and basically contain a border only), the jpg is a photo.
Cheers!