Merge pull request #6067 from radarhere/subsampling

Corrected JPEG subsampling documentation
This commit is contained in:
Hugo van Kemenade 2022-02-19 10:57:41 +02:00 committed by GitHub
commit e5fa767024
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -381,11 +381,12 @@ The :py:meth:`~PIL.Image.Image.save` method supports the following options:
* ``keep``: Only valid for JPEG files, will retain the original image setting.
* ``4:4:4``, ``4:2:2``, ``4:2:0``: Specific sampling values
* ``-1``: equivalent to ``keep``
* ``0``: equivalent to ``4:4:4``
* ``1``: equivalent to ``4:2:2``
* ``2``: equivalent to ``4:2:0``
If absent, the setting will be determined by libjpeg or libjpeg-turbo.
**qtables**
If present, sets the qtables for the encoder. This is listed as an
advanced option for wizards in the JPEG documentation. Use with