Pgmagick write() method – Python
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.