The Imagick::averageImages() function is an inbuilt function in PHP which is used to create an average of two or more images after image processing. It is well defined in PECL imagick 2.0.0 version. This function has been depreciated in further versions of Imagick hence it is replaced by Imagick::mergeImageLayers() in PECL imagick 2.1.0 version. Syntax:
Imagick Imagick::averageImages( void )
Return Value: This function returns a new imagick object on success. Errors/Exceptions: It throws ImagickException while error occurred. Below program illustrates the Imagick::averageImages() function in PHP: Program:
Please Login to comment...