Learn Before
Concept
Writing Images (Pillow)
Similar to the open() function, Image objects have a save() function to write an image to disk.
imageobject.save(filename, format)
This will write an image to disk of the specified name and format, The format argument allows for Pillow to save image to a specific format, but is not required. If no format argument is passed, the format of the image is automatically determined using the filename's extension.
0
1
Updated 2021-07-11
Tags
Python Programming Language
Data Science