The parameters for writing a PIL image are:

  1. file: The file object to write the image to. This can be a file-like object or a file path.

  2. format: The file format to use. This should be a string indicating the format, such as "JPEG", "PNG", etc.

  3. options: A dictionary of options to use when writing the image. The options available depend on the file format being used.

  4. **params: Additional parameters to pass to the image writer. These are specific to each image format and are usually optional.

PIL image writer parameters

原文地址: https://www.cveoy.top/t/topic/btqh 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录