PHP | Imagick addNoiseImage() Function Last Updated : 26 Aug, 2019 Comments Improve Suggest changes Like Article Like Report The Imagick::addNoiseImage() function is an inbuilt function in PHP which is used to add noise in given image. The intensity of noise depends on noise constants and channel types. The image noise is the random variation of brightness and contrast in an image. Syntax: bool Imagick::addNoiseImage ( $noise_type, $channel ) Parameters: This function accepts two parameters as mentioned above and described below: $noise_type: This parameter is used to set the noise types. There are some noise constants available in Imagick function which are listed below: imagick::NOISE_UNIFORM imagick::NOISE_GAUSSIAN imagick::NOISE_MULTIPLICATIVEGAUSSIAN imagick::NOISE_IMPULSE imagick::NOISE_LAPLACIAN imagick::NOISE_POISSON imagick::NOISE_RANDOM This constant supports on ImageMagick version 6.3.6 and above. $channel: This parameter provides the channel constants. Two or more channel can be combined using bitwise operator. There are some channel constants available in Imagick function which are listed below: imagick::CHANNEL_UNDEFINED imagick::CHANNEL_RED imagick::CHANNEL_GRAY imagick::CHANNEL_CYAN imagick::CHANNEL_GREEN imagick::CHANNEL_MAGENTA imagick::CHANNEL_BLUE imagick::CHANNEL_YELLOW imagick::CHANNEL_ALPHA imagick::CHANNEL_OPACITY imagick::CHANNEL_MATTE imagick::CHANNEL_BLACK imagick::CHANNEL_INDEX imagick::CHANNEL_ALL imagick::CHANNEL_DEFAULT Return Value: This function returns TRUE on success. Below program illustrate the Imagick::addNoiseImage() function in PHP: Original Image: 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'); $image->addNoiseImage(3, imagick::CHANNEL_DEFAULT); echo $image; ?> Output: Reference: http://php.net/manual/en/imagick.addnoiseimage.php Comment More infoAdvertise with us Next Article PHP | Imagick addNoiseImage() 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 addImage() Function 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 Imagi 1 min read PHP | Gmagick addImage() Function The Gmagick::addImage() function is an inbuilt function in PHP which is used to adds new image to Gmagick object image list. This function adds a new image to Gmagick object from the current position of the source object. The Gmagick class have the ability to hold and operate on multiple images simu 2 min read PHP | Imagick annotateImage() Function The Imagick::annotateImage() function is an inbuilt function in PHP which is used to annotates an image with text. This function returns True on success. Syntax: bool Imagick::annotateImage( $draw_settings, $x, $y, $angle, $text ) Parameters: This function accepts five parameters as mentioned above 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