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?".
Probably: the image of the people in the hearts is entirely black, with varying transparency. This is given a perspective distortion, then composed over the photo of the beach.
Perhaps you can provide your two input images (or representative examples) and some one can then process them and show you the command line for that. Also please always provide your version of IM and platform, since syntax can vary. See the very top post on the Users forum at viewtopic.php?f=1&t=9620
What is wrong with what you have done? Was it not in Imagemagick? If it was using Imagemagick, you can just put the command line into PHP exec() command.
Please, always provide your IM version and platform when asking questions, since syntax may differ. Also provide your exact command line.
You are not using Imagemagick directly but going through the Imagick API.
I would say you need to distort your text to make it look like it is flat on the sand and possibly make it slightly transparent to let some of the sand texture through. You might be able to do the transparency by using a rgba colour rather than hex ones.
I don't know how to give you input images. I just wanted to make the image looks like it was drawn on the beach sand,
Multiply is giving good result.
You can upload your input image for your example the same way you provided the output images. All I am saying is if you have some result you created and it is not working the way you want, you should always provide both the input and output images along with your command line, so that others can test with the actual images and command. And also explain why it is not working the way you want, so we can understand what is the problem.