VOOZH about

URL: https://www.geeksforgeeks.org/node-js/node-js-gm-border-function/

⇱ Node.js GM border() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Node.js GM border() Function

Last Updated : 28 Apr, 2025

The border() function is an inbuilt function in the GraphicsMagick library which is used to surround the image with a border of color. The function returns the true value on success. 

Syntax:

border( width, height )

Parameters: This function accepts two parameters as mentioned above and described below:

  • width: This parameter is used to specify the width of the border around the image.
  • height: This parameter is used to specify the height of the border around the image.

Return Value: This function returns the GraphicsMagick object. 

Example 1: 

Output:

 👁 Image
 

Example 2: 

Output:

 👁 Image
 

Reference:

Comment

Explore