From f2a8c45744fe10fb9ddbebadf57297bc202f1833 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 17 Feb 2022 18:14:06 +1100 Subject: [PATCH 1/2] Remove incorrect documentation of "-1" subsampling setting --- docs/handbook/image-file-formats.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/handbook/image-file-formats.rst b/docs/handbook/image-file-formats.rst index bd44f63a3..11cc4217e 100644 --- a/docs/handbook/image-file-formats.rst +++ b/docs/handbook/image-file-formats.rst @@ -381,7 +381,6 @@ 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`` From a5ada2c56f332ec996ccb9e42e10a6d8f8bf5bbc Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 18 Feb 2022 09:56:59 +1100 Subject: [PATCH 2/2] Added a note about the default subsampling --- docs/handbook/image-file-formats.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/handbook/image-file-formats.rst b/docs/handbook/image-file-formats.rst index 11cc4217e..164d5616b 100644 --- a/docs/handbook/image-file-formats.rst +++ b/docs/handbook/image-file-formats.rst @@ -385,6 +385,8 @@ The :py:meth:`~PIL.Image.Image.save` method supports the following options: * ``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