PHP | Imagick modulateImage() Function Last Updated : 11 Jul, 2025 Summarize Comments Improve Suggest changes Share 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: https://www.php.net/manual/en/imagick.modulateimage.php Comment More infoAdvertise with us Next Article PHP | Imagick mapImage() 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 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 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 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 linearStretchImage() Function The Imagick::linearStretchImage() function is an inbuilt function in PHP which is used to stretch with saturation the image intensity. The calculation of Imagick::linearStretchImage() function is carry by pixels multiples with blackPoint and whitePoint simultaneously. Syntax: bool Imagick::linearStr 1 min read Like