PHP | Imagick addImage() Function Last Updated : 26 Aug, 2019 Comments Improve Suggest changes Like Article Like 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 <?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 Comment More infoAdvertise with us Next Article PHP | Imagick addImage() Function S sarthak_ishu11 Follow Improve Article Tags : Misc Web Technologies PHP Image-Processing PHP-function PHP-Imagick +2 More Practice Tags : Misc Similar Reads PHP | Imagick drawImage() Function The Imagick::drawImage() function is an inbuilt function in PHP which is used to render the ImagickDraw object on the Imagick object. It is used to draw the image on the Imagick instance. We set an image matrix, parameters and the borders of the drawn image with the help of ImagickDraw methods and t 2 min read PHP | Imagick appendImages() Function The Imagick::appendImages() function is an inbuilt function in PHP which is used to append set of images. This function appends a set of images into a single image. Syntax: Imagick::appendImages( $stack ) Parameters: This function accepts a single parameters $stack which is mandatory. If the stack v 2 min read PHP | Imagick cropImage() Function The Imagick::cropImage() function is an inbuilt function in PHP which is used to extracts the region of the image.Syntax:  int Imagick::cropImage( $width, $height, $x, $y ) Parameters: This function accept four parameters as mention above and describe below.  $width: This parameter is used to spec 2 min read PHP | Imagick displayImage() Function The Imagick::displayImage() function is an inbuilt function in PHP which is used to displays an image object. Syntax: bool Imagick::displayImage( $servername ) Parameters: This function accepts a single parameter $servername which is used to specify the server name. Return Value: This function retur 1 min read PHP | Imagick enhanceImage() Function The Imagick::enhanceImage() function is an inbuilt function in PHP which is used to improve the quality of a noisy image. This function applies the digital filter to improve quality. Syntax: bool Imagick::enhanceImage( void ) Parameter: This function does not accepts any parameter. Return Value: Thi 1 min read Like