Wand scale() function – Python
The scale() function is an inbuilt function in the Python Wand ImageMagick library which is used to change the image size by scaling each pixel value by given columns and rows.
Parameters: This function accepts two parameters as mentioned above and defined below:
- columns: This parameter stores the number of columns to scale the image horizontally. It is in pixels.
- rows: This parameter stores the number of columns to scale the image vertically. It is in pixels.
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