[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2025-04-14 08:33:29 +00:00
parent aca38b6504
commit 630265f79a

View File

@ -557,7 +557,7 @@ The :py:meth:`~PIL.Image.Image.save` method supports the following options:
hardly any gain in image quality. The value ``keep`` is only valid for JPEG 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 files and will retain the original image quality level, subsampling, and
qtables. qtables.
For more information on how qtables are modified based on the quality parameter, For more information on how qtables are modified based on the quality parameter,
see the qtables section. see the qtables section.
**optimize** **optimize**
@ -623,10 +623,10 @@ The :py:meth:`~PIL.Image.Image.save` method supports the following options:
* a list, tuple, or dictionary (with integer keys = * a list, tuple, or dictionary (with integer keys =
range(len(keys))) of lists of 64 integers. There must be range(len(keys))) of lists of 64 integers. There must be
between 2 and 4 tables. between 2 and 4 tables.
If a quality parameter is provided, the qtables will be adjusted accordingly. If a quality parameter is provided, the qtables will be adjusted accordingly.
By default, the qtables are based on a standard JPEG table with a quality of 50. By default, the qtables are based on a standard JPEG table with a quality of 50.
The qtable values will be reduced if the quality is higher than 50 and increased The qtable values will be reduced if the quality is higher than 50 and increased
if the quality is lower than 50. if the quality is lower than 50.
.. versionadded:: 2.5.0 .. versionadded:: 2.5.0