PHP | Imagick normalizeImage() Function Last Updated : 26 Aug, 2019 Comments Improve Suggest changes Like Article Like Report 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 parameter $channel. This parameter provides the channel constant that is valid for channel mode. More than one channel can be combined using the bitwise operator. The defaults channel in Imagick function is Imagick::CHANNEL_DEFAULT. Return Value: This function returns True on success. Below program illustrates the Imagick::normalizeImage() function in PHP: Program: php <?php // Create an imagick object $imagick = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-9.png'); // Create a copy image $original = clone $imagick; // Set the width and height of image $original->cropimage($original->getImageWidth() / 2, $original->getImageHeight(), 0, 0); // Use normalizeImage function $imagick->normalizeImage(); // Use compositeimage function $imagick->compositeimage($original, \Imagick::COMPOSITE_ATOP, 0, 0); header("Content-Type: image/jpg"); // Display the output image echo $imagick->getImageBlob(); ?> Output: Reference: http://php.net/manual/en/imagick.normalizeimage.php Comment More infoAdvertise with us Next Article PHP | Imagick normalizeImage() Function V vijay_raj Follow Improve Article Tags : Misc Web Technologies PHP Image-Processing PHP-function PHP-Imagick +2 More Practice Tags : Misc 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 magnifyImage() Function The Imagick::magnifyImage() function is an inbuilt function in PHP which is used to scale an image proportionally to 2x. This function scales an image into twice of its original size. Syntax: bool Imagick::magnifyImage( void ) Parameters: This function does not accept any parameter. Return Value: Th 1 min read PHP | Imagick levelImage() Function The Imagick::levelImage() function is an inbuilt function in PHP that is used to adjust the levels of an image. Syntax: bool Imagick::levelImage( $blackPoint, $gamma, $whitePoint, $channel = Imagick::CHANNEL_DEFAULT ) Parameters: This function accepts four parameters as mentioned above and describe 1 min read PHP | Imagick minifyImage() Function The Imagick::minifyImage() function is an inbuilt function in PHP which is used to scale an image proportionally to half of its size. This function resizes the image into one-half of its original size. Syntax:  bool Imagick::minifyImage( void ) Parameters: This function does not accepts any paramet 1 min read PHP | Imagick modulateImage() Function 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 belo 1 min read Like