PHP | Imagick addImage() Function Improve Improve Like Article Like Save Share Report The Imagick::addImage() function is an inbuilt function in PHP which is used to adds new image to Imagick object image list. After the operation iterator position is moved at the end of the list. This function adds new image to Imagick object from the current position of the source object. The Imagick class have the ability to hold and operate on multiple images simultaneously. Syntax: bool Imagick::addImage ( $source ) Parameters: This function accepts single parameter $source which holds the source Imagick object. Return Value: This function returns TRUE on success. Errors/Exceptions: This function throws ImagickException on error. Below programs illustrate the Imagick::addImage() function in PHP: Original Image 1: Original Image 2: Program: <?php // require_once('path/to/vendor/autoload.php'); header('Content-type: image/png'); $image = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-9.png'); $t = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/adaptiveThresholdImage.png'); $image->addImage($t); echo $image; ?> Output: Related Articles: PHP | Imagick addNoiseImage() Function PHP | Imagick adaptiveBlurImage() Function Reference: http://php.net/manual/en/imagick.addimage.php Last Updated : 26 Aug, 2019 Like Article Save Article Previous PHP | ImagickDraw setFillOpacity() Function Next HTML5 <aside> Tag Share your thoughts in the comments Add Your Comment Please Login to comment... Similar Reads PHP | Gmagick addImage() Function PHP | Imagick floodFillPaintImage() Function PHP | Imagick adaptiveSharpenImage() Function PHP | Imagick flopImage() Function PHP | Imagick setImageExtent() Function PHP | Imagick getImageWhitePoint() Function PHP | Imagick getCompressionQuality() Function PHP | Imagick clear() Function PHP | Imagick annotateImage() Function PHP | Imagick adaptiveResizeImage() Function Like sarthak_ishu11 Follow Article Tags : Image-Processing PHP-function PHP-Imagick PHP Web Technologies