The trim() function is an inbuilt function in the GraphicsMagick library which is used to remove edges that are exactly the same color as the corner pixels. The function returns the true value on success.
Parameters: This function does not accepts any parameters.
Return Value: This function returns the GraphicsMagick object with trimmed image added.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.