Changed default "method" value to 4

This commit is contained in:
Andrew Murray 2021-04-28 18:20:44 +10:00
parent 12968c3269
commit 2c03800824
2 changed files with 2 additions and 2 deletions

View File

@ -940,7 +940,7 @@ The :py:meth:`~PIL.Image.Image.save` method supports the following options:
files compared to the slowest, but best, 100.
**method**
Quality/speed trade-off (0=fast, 6=slower-better). Defaults to 0.
Quality/speed trade-off (0=fast, 6=slower-better). Defaults to 4.
**icc_profile**
The ICC Profile to include in the saved file. Only supported if

View File

@ -314,7 +314,7 @@ def _save(im, fp, filename):
if isinstance(exif, Image.Exif):
exif = exif.tobytes()
xmp = im.encoderinfo.get("xmp", "")
method = im.encoderinfo.get("method", 0)
method = im.encoderinfo.get("method", 4)
if im.mode not in _VALID_WEBP_LEGACY_MODES:
alpha = (