Webp save documentation

This commit is contained in:
wiredfool 2013-10-22 12:32:01 -07:00
parent a18ef74886
commit 5c501b8f64

View File

@ -271,6 +271,24 @@ WebP
PIL reads and writes WebP files. The specifics of PIL's capabilities with this PIL reads and writes WebP files. The specifics of PIL's capabilities with this
format are currently undocumented. format are currently undocumented.
The :py:meth:`~PIL.Image.Image.save` method supports the following options:
**lossless**
If present, instructs the WEBP writer to use lossless
compression.
**quality**
Integer, 1-100, Defaults to 80. Sets the quality level for
lossy compression.
**icc_procfile**
The ICC Profile to include in the saved file. Only supported if
the system webp library was built with webpmux support.
**exif**
The exif data to include in the saved file. Only supported if
the system webp library was built with webpmux support.
XBM XBM
^^^ ^^^