PHP | Gmagick edgeimage() Function Last Updated : 22 Mar, 2021 Comments Improve Suggest changes Like Article Like Report 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 which takes the radius of the operation. Return Value: This function returns Gmagick object with image enhance.Errors/Exceptions: This function throws GmagickException on error.Below programs illustrates the Gmagick::edgeimage() 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'); // Use edgeimage() function $gmagick->edgeimage(15); 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); // Use edgeimage() function $gmagick->edgeimage(10); // Display the output image header("Content-Type: image/png"); echo $gmagick->getImageBlob(); ?> Output: Reference: http://php.net/manual/en/gmagick.edgeimage.php Comment More infoAdvertise with us Next Article PHP | Gmagick edgeimage() Function S sarthak_ishu11 Follow Improve Article Tags : Web Technologies PHP Image-Processing PHP-function PHP-Gmagick +1 More Similar Reads PHP | Imagick edgeImage() Function The Imagick::edgeImage() function is an inbuilt function in PHP which is used to enhance the edges within the image. It enhances the edges with the help of a convolution filter of the given radius. Syntax: bool Imagick::edgeImage( $radius ) Parameters: This function accepts single parameter $radius 1 min read PHP | Gmagick addImage() Function The Gmagick::addImage() function is an inbuilt function in PHP which is used to adds new image to Gmagick object image list. This function adds a new image to Gmagick object from the current position of the source object. The Gmagick class have the ability to hold and operate on multiple images simu 2 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 drawimage() Function The Gmagick::drawimage() function is an inbuilt function in PHP which is used to render the GmagickDraw object on the current image. Syntax: Gmagick Gmagick::drawimage ( $GmagickDraw ) Â Parameters: This function accepts a single parameters as $GmagickDraw which stores the operations to render the i 2 min read PHP | Gmagick enhanceimage() Function The Gmagick::enhanceimage() function is an inbuilt function in PHP which is used to improve the quality of a noisy image. This function applies the digital filter to improve quality.Syntax:Â Â Gmagick Gmagick::enhanceimage( void ) Parameters: This function does not accepts any parameter.Return Value: 1 min read Like