Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/handbook/image-file-formats.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/PIL/WebPImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down