VOOZH about

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

⇱ Node.js GM edge() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Node.js GM edge() Function

Last Updated : 28 Apr, 2025

The edge() function is an inbuilt function in the GraphicsMagick library which is used to detect edges within an image. The function returns the true value on success. 

Syntax:

edge( radius )

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

  • radius: This parameter is used to specify the radius of the edges within the image.

Return Value: This function returns the GraphicsMagick object. 

Example 1: 

Output:

 👁 Image
 

Example 2: 

Output:

 👁 Image
 

Reference:

Comment

Explore