PHP | Imagick shadeImage() Function Last Updated : 26 Aug, 2019 Comments Improve Suggest changes Like Article Like Report The Imagick::shadeImage() function is an inbuilt function in PHP which is used to creates a 3D effect of a given image. Shines a distant light on an image to create a three-dimensional effect. The azimuth is measured in degrees of x-axis and elevation is measured in pixels above the z-axis. Syntax: bool Imagick::shadeImage( $gray, $azimuth, $elevation ) Parameters: This function accepts three parameters as mentioned above and described below: $gray: This parameter stores the value other than zero and shades the intensity of each pixel. $azimuth: This parameter stores the value of the light source direction. It is measured in degrees of the x-axis. $elevation: This parameter stores the value of the light source direction. It is measured in pixels above the z-axis. Return Value: This function returns True on success. Original Image: Below program illustrates the Imagick::shadeImage() function in PHP: Program: php <?php // require_once('path/vendor/autoload.php'); // Create an Imagick Object $imagick = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-12.png'); // shadeImage Function $imagick->shadeImage(true, 45, 20); // Image Header header("Content-Type: image/jpg"); // Display the image echo $imagick->getImageBlob(); ?> Output: Related Articles: PHP | Imagick transposeImage() Function PHP | Imagick addNoiseImage() Function Reference: http://php.net/manual/en/imagick.shadeimage.php Comment More infoAdvertise with us Next Article PHP | Imagick shadeImage() Function S sarthak_ishu11 Follow Improve Article Tags : Web Technologies PHP Image-Processing PHP-function PHP-Imagick +1 More Similar Reads PHP | Imagick::shaveImage() Function The Imagick::shaveImage() function is an inbuilt function in PHP which is used to shaves pixels from the image edges. It allocates the memory necessary for the new Image structure and returns a pointer to the new image. Syntax: bool Imagick::shaveImage( $columns, $rows ) Parameters: This function ac 1 min read PHP | Imagick readImage() Function The Imagick::readImage() function is an inbuilt function in PHP which is used to read an image from filename. Syntax: bool Imagick::readImage( string $filename ) Parameters:This function accepts a single parameter $filename which holds the name of the file. It can also accept URL of the file. Return 1 min read PHP | Imagick sampleImage() Function The Imagick::sampleImage() function is an inbuilt function in PHP which is used to scale an image to the desired dimensions with pixel sampling.This method does not introduce any additional color into the scaled image like other resizing methods. Syntax: bool Imagick::sampleImage( int $rows, int $co 1 min read PHP | Imagick readImages() Function The Imagick::readImages() function is an inbuilt function in PHP which is used to read images from an array of filenames and associate them to a single Imagick object. Syntax: bool Imagick::readImages( array $filenames ) Parameters:This function accepts a single parameter $filenames which holds an a 2 min read PHP | Imagick solarizeImage() Function The Imagick::solarizeImage() function is an inbuilt function in PHP which is used to applies a solarizing effect to the image. The image effect achieved in a photo darkroom by selectively exposing areas of photo sensitive paper to light. Syntax: bool Imagick::solarizeImage( $threshold ) Parameters: 1 min read Like