PHP | Gmagick embossimage() Function Last Updated : 22 Mar, 2021 Comments Improve Suggest changes Like Article Like Report The Gmagick::embossimage() function is an inbuilt function in PHP which is used to return a grayscale image with a three-dimensional effect. This function uses the Gaussian operator of the given radius and standard deviation to filter the image.Syntax: Gmagick Gmagick::embossimage( $radius, $sigma ) Parameters: This function accepts two parameters as mentioned above and described below: $radius: This parameter holds the value of radius effect.$sigma: This parameter holds the value of sigma effect. Return Value: This function returns embossed Gmagick object.Errors/Exceptions: This function throws GmagickException on error.Below programs illustrates the Gmagick::embossimage() function in PHP:Program 1: Original Image: php <?php // Create a Gmagick object $gmagick = new Gmagick( 'https://media.geeksforgeeks.org/wp-content/uploads/tech.png'); // Emboss the image. $gmagick->embossimage(12, 5); header('Content-type: image/png'); // Output the image echo $gmagick; ?> Output: Program 2: php <?php // Create a GmagickDraw object $draw = new GmagickDraw(); // Create GmagickPixel object $strokeColor = new GmagickPixel('Red'); $fillColor = new GmagickPixel('Green'); // Set the color, opacity of image $draw->setStrokeOpacity(1); $draw->setStrokeColor('Red'); $draw->setFillColor('Green'); // Set the width and height of image $draw->setStrokeWidth(7); $draw->setFontSize(72); // Function to draw circle $draw->circle(250, 250, 100, 150); $gmagick = new Gmagick(); $gmagick->newImage(500, 500, 'White'); $gmagick->setImageFormat("png"); $gmagick->drawImage($draw); // Emboss the image. $gmagick->embossimage(15, 6); // Display the output image header("Content-Type: image/png"); echo $gmagick->getImageBlob(); ?> Output: Reference: http://php.net/manual/en/gmagick.embossimage.php Comment More infoAdvertise with us Next Article PHP | Gmagick embossimage() Function S sarthak_ishu11 Follow Improve Article Tags : Web Technologies PHP Image-Processing PHP-function PHP-Gmagick +1 More Similar Reads PHP | Imagick embossImage() Function The Imagick::embossImage() function is an inbuilt function in PHP which is used to return a grayscale image with a three-dimensional effect. This function convolves the image with a Gaussian operator of the given radius and standard deviation. Syntax: bool Imagick::embossImage( $radius, $sigma ) Par 1 min read PHP | Gmagick borderImage() Function The Gmagick::borderImage() function is an inbuilt function in PHP which is used to draw the border in an image. This function creates the border surrounding the image in the given color. Syntax: Gmagick Gmagick::borderImage( $bordercolor, $width, $height ) Parameters: This function accepts three par 2 min read PHP | Gmagick edgeimage() Function The Gmagick::edgeimage() function is an inbuilt function in PHP which is used to enhance the image edges using convolution filter of the given radius. Radius 0 is used as auto-selected.Syntax:  Gmagick Gmagick::edgeimage( $radius ) Parameters: This function accepts a single parameter as $radius whi 1 min read PHP | Gmagick flopimage() Function The Gmagick::flopimage() function is an inbuilt function in PHP which is used to create a flopped image. This function creates a mirror image along the y-axis. Syntax: Gmagick Gmagick::flopimage( void )  Parameters: This function does not accept any parameter. Return Value: This function returns fl 1 min read PHP | Gmagick blurimage() Function The Gmagick::blurimage() function is an inbuilt function in PHP which is used to add blur filter to the image. Syntax: Gmagick Gmagick::blurimage( $radius, $sigma, $channel )  Parameters: This function accepts three parameters as mentioned above and described below: $radius: This parameter is used 2 min read Like