The resize() function is an inbuilt function in the Pgmagick library which is used to resize an image. The function returns the true value on success.
Parameters: This function accepts the string of width and height formatted as ‘widthxheight’ which depicts the dimensions of the final image.
Return Value: This function returns the Pgmagick object with image added.
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.