save method

save

Saves Image to the specified file

def save(self, file_name):
    ...
ParameterTypeDescription
file_namestrFile name str

save

Saves the Image to the specified stream in the specified format.

def save(self, stream, image_format):
    ...
ParameterTypeDescription
streamio.RawIOBaseStream for saving image io.RawIOBase
image_formatPPImageFormatImage format PPImageFormat

save

Saves the Image to the specified file in the specified format.

def save(self, file_name, image_format):
    ...
ParameterTypeDescription
file_namestrFile name str
image_formatPPImageFormatImage format PPImageFormat

See Also