PHP | Imagick getImageGamma() Function Last Updated : 26 Aug, 2019 Comments Improve Suggest changes Like Article Like Report The Imagick::getImageGamma() function is an inbuilt function in PHP which is used to get the Gamma value of the image. The Gamma is a nonlinear operation used to encode and decode luminance or tristimulus values in images. Syntax: float Imagick::getImageGamma( void ) Parameters: This function does not accepts any parameters. Return Value: This function returns True on success. Errors/Exceptions: It throws an ImagickException on error. Below program illustrates the Imagick::getImageGamma() function in PHP: Program: php <?php // require_once('path/vendor/autoload.php'); // Create a new Imagick Object $image = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-14.png'); // getImageGamma function $size = $image->getImageGamma(); // Display the colorspace print_r($size); ?> <?php Output: 0.45454999804497 Related Articles: PHP | Imagick appendImages() Function PHP | Imagick adaptiveBlurImage() Function Reference: http://php.net/manual/en/imagick.getimagegamma.php Comment More infoAdvertise with us Next Article PHP | Imagick getImageGamma() Function S sarthak_ishu11 Follow Improve Article Tags : Misc Technical Scripter Web Technologies PHP Image-Processing PHP-function PHP-Imagick +3 More Practice Tags : Misc Similar Reads PHP | Imagick getImageMatte() Function The Imagick::getImageMatte() function is an inbuilt function in PHP which is used to get the matte channel of an imagick object.Syntax:  bool Imagick::getImageMatte( void ) Parameters: This function does not accept any parameter.Return Value: This function returns True if image has a matte channel 1 min read PHP | Imagick getImagePage() Function The Imagick::getImagePage() function is an inbuilt function in PHP which is used to get the page geometry of a particular image. Syntax: array Imagick::getImagePage( void ) Parameters: This function does not accepts any parameter. Return Value: This function returns an array associated with the page 2 min read PHP | Imagick getImageFormat() Function The Imagick::getImageFormat() function is an inbuilt function in PHP which is used to get the format of a particular image in a sequence Syntax:  string Imagick::getImageFormat( void ) Parameters: This function does not accepts any parameter. Return Value: This function returns a string of the imag 1 min read PHP | Imagick getImageExtrema() Function The Imagick::getImageExtrema() function is an inbuilt function in PHP which is used to get the extrema for an image. Extrema are the points at which a maximum or minimum value of a function is observed. Syntax: array Imagick::getImageExtrema( void ) Parameters: This function doesn't accept any param 1 min read PHP | Imagick getImageHistogram() Function The Imagick::getImageHistogram() function is an inbuilt function in PHP which is used to get the image histogram. Syntax: array Imagick::getImageHistogram( void ) Parameters: This function does not accept any parameter. Return Value: This function returns an array of ImagickPixel objects containing 1 min read Like