The Imagick::compositeImage function allows you to blend images together in many different ways. Please see http://www.imagemagick.org/Usage/compose/ for details
Input 1
Input 2
Output
Composite example
The Imagick::compositeImage function allows you to blend images together in many different ways. Please see http://www.imagemagick.org/Usage/compose/ for details
//    $imagick = new Imagick(realpath($imagePath1));
//    $imagick2 = new Imagick(realpath($imagePath2));
//    $imagick1->compositeImage($imagick2, $type, 0, 0);
//    $imagick1->setImageFormat('png');
//
//    $image->setImageFormat("png");
//    header("Content-Type: image/png");
//    echo $imagick->getImageBlob();