VOOZH about

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

⇱ Node.js GM bordercolor() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Node.js GM bordercolor() Function

Last Updated : 28 Apr, 2025

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

Syntax:

borderColor( color )

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

  • color: This parameter is used to specify the color 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