mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 01:34:24 +03:00
Changed default "method" value to 4
This commit is contained in:
parent
12968c3269
commit
2c03800824
|
@ -940,7 +940,7 @@ The :py:meth:`~PIL.Image.Image.save` method supports the following options:
|
||||||
files compared to the slowest, but best, 100.
|
files compared to the slowest, but best, 100.
|
||||||
|
|
||||||
**method**
|
**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**
|
**icc_profile**
|
||||||
The ICC Profile to include in the saved file. Only supported if
|
The ICC Profile to include in the saved file. Only supported if
|
||||||
|
|
|
@ -314,7 +314,7 @@ def _save(im, fp, filename):
|
||||||
if isinstance(exif, Image.Exif):
|
if isinstance(exif, Image.Exif):
|
||||||
exif = exif.tobytes()
|
exif = exif.tobytes()
|
||||||
xmp = im.encoderinfo.get("xmp", "")
|
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:
|
if im.mode not in _VALID_WEBP_LEGACY_MODES:
|
||||||
alpha = (
|
alpha = (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user