PHP | Imagick borderImage() Function Last Updated : 26 Aug, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report The Imagick::borderImage() function is an inbuilt function in PHP which is used to draw the border in an image. This function creates the border surrounded to the image in the given color. Syntax: bool Imagick::borderImage( $bordercolor, $width, $height ) Parameters: This function accepts three parameters as mentioned above and describrd below: $bordercolor: This parameter is an ImagickPixel object or a string containing the border color. $width: This parameter is used to set the border width. $height: This parameter is used to set border height. Return Value: This function returns True on success. Below programs illustrate the Imagick::borderImage() function in PHP: Program 1: php <?php // Create an image object $image = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-9.png'); // Set the border in the given image $image->borderImage('green', 100, 100); header("Content-Type: image/jpg"); // Display image echo $image; ?> Output: Program 2: php <?php // Create an image object $image = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/adaptiveThresholdImage.png'); // Set the border in the given image $image->borderImage('green', 20, 20); header("Content-Type: image/jpg"); // Display image echo $image; ?> Output: Related Articles: PHP | Imagick addImage() Function PHP | Imagick addNoiseImage() Function PHP | Imagick adaptiveBlurImage() Function Reference: http://php.net/manual/en/imagick.borderimage.php Comment More infoAdvertise with us Next Article PHP | Imagick borderImage() Function V vijay_raj Follow Improve Article Tags : Misc Web Technologies PHP Image-Processing PHP-function PHP-Imagick +2 More Practice Tags : Misc Similar Reads 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 | Imagick drawImage() Function The Imagick::drawImage() function is an inbuilt function in PHP which is used to render the ImagickDraw object on the Imagick object. It is used to draw the image on the Imagick instance. We set an image matrix, parameters and the borders of the drawn image with the help of ImagickDraw methods and t 2 min read 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 | Imagick blurImage() function The Imagick::blurImage() function is an inbuilt function in PHP which is used to add blur filter to the image. This function returns True on success. Syntax: bool Imagick::blurImage( $radius, $sigma, $channel ) Parameters: This function accepts three parameters as mentioned above and described below 1 min read PHP | Imagick frameImage() Function The Imagick::frameImage() function is an inbuilt function in PHP which is used to add a three-dimensional border around the image. Syntax: bool Imagick::frameImage( $color, $width, $height, $inner_bevel, $outer_bevel ) Parameters: This function accepts five parameters as mentioned above and describe 2 min read Like