PHP : Function Reference : Imagick Image Library : Imagick::compositeImage
vincent dot hoen
Here is a way to composite an image onto another :
//Creating two Imagick object
$first = new Imagick('first.jpg');
$second = new Imagick('second.jpg');
//Second image is put on top of the first
$first->compositeImage($second, $second->getImageCompose(), 5, 5);
//new image is saved as final.jpg
$first->writeImage('final.jpg');
|