Compositing Two Images Together with ImageMagick

Q

How to composite two images into a single image with ImageMagick? Can I use the ImageMagick "composite" command to composite two images together?

✍: FYIcenter.com

A

Yes. You can use the ImageMagick "composite" command to composite two images together into a single image. You can test it out in these steps:

C:\fyicenter>composite -gravity center small.jpg large.jpg mixed.jpg

C:\fyicenter>imdisplay mixed.jpg

You should see the "small.jpg" image is added to the "large.jpg" image in the center.

If the "small.jpg" image has a transparent background, you can see through the background of the "small.jpg" image area.

2013-11-19, 2592🔥, 0💬