I'm trying to figure out how to combine two images, such that one of the images only appears where there is non-transparency in the other image. OK, that wasn't very clear. I'll explain with pictures. Consider these two images. In the second image, the gray area represents transparency.
I want to combine them so that the circle is filled with content from the first image. So the result should look like this:
Is there a way to do that?
Combine overlap of two images
Re: Combine overlap of two images
If the gray area is your 2nd image is transparent,
will do the job.
Code: Select all
magick 1st.png 2nd.png -compose copy_opacity -composite result.png
Re: Combine overlap of two images
That's it! Thanks!