Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
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: