The write() function is an inbuilt function in the Pgmagick library which is used to write an intermediate image. The current image is written to the specified filename and then processing continues using that image.
Parameters: This function accepts single parameter which is mentioned above and defined below:
- filename: This parameter is used to specify the name of the processed image.
Return Value: This function returns the Pgmagick 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.