PHP | Imagick autoLevelImage() Function Last Updated : 26 Aug, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report The Imagick::autoLevelImage() function is an inbuilt function in PHP which is used to adjusts the levels of a particular image channel. The level of the image channel is set the minimum and maximum value of color in the full quantum range. Syntax: bool Imagick::autoLevelImage( $channel ) Parameters: This function accepts a single parameters $channel which is used to set the auto-levelling. Return Value: This function returns True on success. Below programs illustrate the Imagick::autoLevelImage() function in PHP: Program 1: php <?php // Create an image object $imagick = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-9.png'); // Set the autolevelling of image $imagick->autoLevelImage(); // Display the image header("Content-Type: image/jpg"); echo $imagick->getImageBlob(); ?> Output: Program 2: php <?php // Create an image object $imagick = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/slider.gif'); // Set the autolevelling of image $imagick->autoLevelImage(); // Display the image header("Content-Type: image/gif"); echo $imagick->getImageBlob(); ?> Output: Related Articles: PHP | Imagick borderImage() Function PHP | Imagick adaptiveResizeImage() Function PHP | Imagick addNoiseImage() Function Reference: http://php.net/manual/en/imagick.autolevelimage.php Comment More infoAdvertise with us Next Article PHP | Imagick autoLevelImage() Function V vijay_raj Follow Improve Article Tags : Misc Web Technologies PHP Image-Processing PHP-Imagick +1 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 | Imagick flattenImages() Function The Imagick::flattenImages() function is an inbuilt function in PHP which is used to merges the sequence of images. This is useful for combining Photoshop layers into a single image. Syntax: Imagick Imagick::flattenImages( void ) Parameters: This function does not accept any parameter. Return Value: 1 min read PHP | Imagick averageImages() Function 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::me 2 min read PHP | Imagick colorizeImage() Function The Imagick::colorizeImage() function is an inbuilt function in PHP which is used to blends the fill color with each pixel in the image with a specified opacity. Syntax: bool Imagick::colorizeImage( mixed $colorize, mixed $opacity, bool $legacy = FALSE ) Parameters: This function accepts three param 2 min read PHP | Imagick drawImage() Function The Imagick::drawImage() function is an inbuilt function in PHP which is used to render the ImagickDraw object on the Imagick object. It is used to draw the image on the Imagick instance. We set an image matrix, parameters and the borders of the drawn image with the help of ImagickDraw methods and t 2 min read Like