mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-04 21:50:54 +03:00
Merge pull request #6135 from carandraug/document-jpeg-quality-keep
This commit is contained in:
commit
5e511d5b11
|
@ -391,10 +391,12 @@ The :py:meth:`~PIL.Image.open` method may set the following
|
||||||
The :py:meth:`~PIL.Image.Image.save` method supports the following options:
|
The :py:meth:`~PIL.Image.Image.save` method supports the following options:
|
||||||
|
|
||||||
**quality**
|
**quality**
|
||||||
The image quality, on a scale from 0 (worst) to 95 (best). The default is
|
The image quality, on a scale from 0 (worst) to 95 (best), or the string
|
||||||
75. Values above 95 should be avoided; 100 disables portions of the JPEG
|
``keep``. The default is 75. Values above 95 should be avoided; 100 disables
|
||||||
compression algorithm, and results in large files with hardly any gain in
|
portions of the JPEG compression algorithm, and results in large files with
|
||||||
image quality.
|
hardly any gain in image quality. The value ``keep`` is only valid for JPEG
|
||||||
|
files and will retain the original image quality level, subsampling, and
|
||||||
|
qtables.
|
||||||
|
|
||||||
**optimize**
|
**optimize**
|
||||||
If present and true, indicates that the encoder should make an extra pass
|
If present and true, indicates that the encoder should make an extra pass
|
||||||
|
|
Loading…
Reference in New Issue
Block a user