The shave() function is an inbuilt function in the Python Wand ImageMagick library which is used to remove pixels from the image.
Parameters: This function accepts four parameters as mentioned above and defined below:
- columns: This parameter is used to set amount to shave off both sides of the x-axis.
- rows: This parameter is used to set amount to shave off both sides of the y-axis
Return Value: This function returns the Wand ImageMagick object.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course