PHP | Imagick autoLevelImage() Function
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 image channel is set the minimum and maximum value of color in full quantum range.
Syntax:
bool Imagick::autoLevelImage( $channel )
Parameters: This function accepts 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 // Create an image object $imagick = new Imagick( // Set the autolevelling of image $imagick->autoLevelImage(); // Display the image header("Content-Type: image/jpg"); echo $imagick->getImageBlob(); ?> |
Output:

Program 2:
<?php // Create an image object $imagick = new Imagick( // 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
Recommended Posts:
- PHP | Imagick getCopyright() Function
- PHP | Imagick equalizeImage() Function
- PHP | Imagick extentImage() Function
- PHP | Imagick edgeImage() Function
- PHP | Imagick motionBlurImage() Function
- PHP | Imagick sharpenImage() Function
- PHP | Imagick enhanceImage() Function
- PHP | Imagick embossImage() Function
- PHP | Imagick::shaveImage() Function
- PHP | Imagick cycleColormapImage( ) Function
- PHP | Imagick despeckleImage() Function
- PHP | Imagick convolveImage() Function
- PHP | Imagick pingImageBlob() Function
- PHP | Imagick paintTransparentImage() Function
- PHP | Imagick gammaImage() Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




