Wand sample() function – Python
The sample() function is an inbuilt function in the Python Wand ImageMagick library which is used to change the image size by sampling the pixels. It’s quicker than resize() but less quality of image is provided.
Parameters: This function accepts two parameters as mentioned above and defined below:
- width: This parameter stores the width of the sample image.
- height: This parameter stores the height of the sample image.
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