Ggmon
Ggmon

Reputation: 748

Image magick overlaying images

I have two images, one is the overlay, lets say Image A with transparency, and another image B, I have to place the overlay image A over image B, so that some part of image B is visible through the transparent part of image A, I also have to move the image B according to some parameters, How can I achieve this with image magick

Upvotes: 9

Views: 5693

Answers (1)

Ggmon
Ggmon

Reputation: 748

I was able to achieve it by the following command

composite -compose Dst_Over -geometry 520x320+20+80 image.jpeg overlay.png final.png

the key here -compose Dst_Over, which puts the image under the background (overlay.png) and the geometry options let you move the image.

Upvotes: 11

Related Questions