The crop() function is an inbuilt function in the GraphicsMagick library which is used to scale the image. The function returns the true value on success.
Parameters: This function accepts two parameters as mentioned above and described below:
- width: This parameter is used to specify the width from which the image is to be scaled.
- height: This parameter is used to specify the height from which the image is to be scaled.
Return Value: This function returns the GraphicsMagick object.
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.