PHP | Imagick modulateImage() Function Last Updated : 01 Oct, 2019 Comments Improve Suggest changes Like Article Like Report The Imagick::modulateImage() function is an inbuilt function in PHP which is used to control the brightness, saturation, and hue of an image. Syntax: bool Imagick::modulateImage( $brightness, $saturation, $hue ) Parameters: This function accepts three parameters as mentioned above and described below: $brightness: This parameter is used to hold the value of brightness. $saturation: This parameter is used to hold the value of saturation. $hue: This parameter is used to hold the value of hue. Return Value: This function returns True on success. Below programs illustrate the Imagick::modulateImage() function in PHP: Original Image: Program 1: php <?php /*require_once('vendor/autoload.php'); */ header('Content-type: image/png'); /*Create Imagick Object*/ $image = new Imagick('img/geeksforgeeks.png'); /*modulateImage function*/ $image->modulateImage(60, 100, 100); echo $image; ?> Output: Program 2: php <?php /*require_once('vendor/autoload.php');*/ /*Imagick Object*/ $imagick = new Imagick('img/geeksforgeeks.png'); /*modulateImage*/ $imagick->modulateImage(100, 0, 100); /*Write Image*/ $imagick->writeImage('rotationalImage1.png'); /*Destroy Imagick Variable*/ $imagick->destroy(); ?> Output: Reference: http://php.net/manual/en/imagick.modulateimage.php Comment More infoAdvertise with us Next Article PHP | Imagick modulateImage() Function S sarthak_ishu11 Follow Improve Article Tags : Technical Scripter Web Technologies PHP Image-Processing PHP-function PHP-Imagick +2 More Similar Reads PHP | Imagick mapImage() Function The Imagick::mapImage() function is an inbuilt function in PHP which is used to replace the colors of an image with the closest color from a reference image. Syntax: bool Imagick::mapImage( Imagick $map, float $dither ) Parameters: This function accepts two parameters as mentioned above and describe 1 min read PHP | Imagick mosaicImages() Function The Imagick::mosaicImages() function is an inbuilt function in PHP which is used to form a mosaic from images. This function uses an image sequence to form a single coherent picture. Syntax: Imagick Imagick::mosaicImages( void ) Parameters: This function does not accepts any parameters. Return Value 1 min read PHP | Imagick newImage() Function The Imagick::newImage() function is an inbuilt function in PHP which is used to creates a new image. This function creates a new image and associates ImagickPixel value as the background color. Syntax: bool Imagick::newImage( $cols, $rows, $background, $format ) Parameters: This function accepts fo 1 min read PHP Imagick morphImages() Function The Imagick::morphImages function is an inbuilt function in PHP that is used to morph a set of images. The image pixels and size of the image are linearly interpolated to give the appearance of metamorphosis from one image to the next. Syntax: Imagick Imagick::morphImages( $number_frames )Parameters 1 min read PHP | Imagick normalizeImage() Function The Imagick::normalizeImage() function is an inbuilt function in PHP which is used to enhances the contrast of a color image by adjusting the color of the pixel to span the entire range of colors available. Syntax: bool Imagick::normalizeImage( $channel ) Parameters: This function accepts a single p 1 min read Like