PIL image writer parameters
The parameters for writing a PIL image are:
-
file: The file object to write the image to. This can be a file-like object or a file path.
-
format: The file format to use. This should be a string indicating the format, such as "JPEG", "PNG", etc.
-
options: A dictionary of options to use when writing the image. The options available depend on the file format being used.
-
**params: Additional parameters to pass to the image writer. These are specific to each image format and are usually optional.
原文地址: https://www.cveoy.top/t/topic/btqh 著作权归作者所有。请勿转载和采集!