From 43a4477cd928f4c7da64b2d2f9e0d29d70ddaa47 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 8 Dec 2023 19:20:37 +1100 Subject: [PATCH 1/4] Added release notes for #7584 and #7587 --- docs/releasenotes/10.2.0.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/releasenotes/10.2.0.rst b/docs/releasenotes/10.2.0.rst index 41dd26826..a28c8aba1 100644 --- a/docs/releasenotes/10.2.0.rst +++ b/docs/releasenotes/10.2.0.rst @@ -20,10 +20,12 @@ TODO API Changes =========== -TODO -^^^^ +Zero or negative font size error +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -TODO +When creating a :py:class:`~PIL.ImageFont.FreeTypeFont` instance, either directly or +through :py:func:`~PIL.ImageFont.truetype`, if the font size is not greater than zero, a +:py:exc:`ValueError` will now be raised. API Additions ============= From 5c560ca1a962c3feababae77a848ec2cd3bad835 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 8 Dec 2023 19:15:01 +1100 Subject: [PATCH 2/4] Added release notes for #7491 --- docs/releasenotes/10.2.0.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/releasenotes/10.2.0.rst b/docs/releasenotes/10.2.0.rst index a28c8aba1..b1330d7c7 100644 --- a/docs/releasenotes/10.2.0.rst +++ b/docs/releasenotes/10.2.0.rst @@ -38,6 +38,12 @@ Added DdsImagePlugin enums :py:class:`~PIL.DdsImagePlugin.DXGI_FORMAT` and :py:class:`~PIL.DdsImagePlugin.D3DFMT` enums have been added to :py:class:`PIL.DdsImagePlugin`. +JPEG tables-only streamtype +^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +When saving JPEG files, ``streamtype`` can now be set to 1, for tables-only. This will +output only the quantization and Huffman tables for the image. + Security ======== From c45b7590adfebdea46eb8060967fce9bd51b773e Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 8 Dec 2023 19:19:40 +1100 Subject: [PATCH 3/4] Added release notes for #7488 --- docs/releasenotes/10.2.0.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/releasenotes/10.2.0.rst b/docs/releasenotes/10.2.0.rst index b1330d7c7..fca8fe67c 100644 --- a/docs/releasenotes/10.2.0.rst +++ b/docs/releasenotes/10.2.0.rst @@ -38,6 +38,13 @@ Added DdsImagePlugin enums :py:class:`~PIL.DdsImagePlugin.DXGI_FORMAT` and :py:class:`~PIL.DdsImagePlugin.D3DFMT` enums have been added to :py:class:`PIL.DdsImagePlugin`. +JPEG restart marker interval +^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +When saving JPEG files, ``restart_marker_blocks`` and ``restart_marker_rows`` can now +be used to emit restart markers whenever the specified number of MCU blocks or rows +have been produced. + JPEG tables-only streamtype ^^^^^^^^^^^^^^^^^^^^^^^^^^^ From 9e5173846e787a3c15836701d01c55f9c8dcd907 Mon Sep 17 00:00:00 2001 From: Andrew Murray <3112309+radarhere@users.noreply.github.com> Date: Fri, 8 Dec 2023 21:04:15 +1100 Subject: [PATCH 4/4] Updated wording Co-authored-by: Hugo van Kemenade --- docs/releasenotes/10.2.0.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/releasenotes/10.2.0.rst b/docs/releasenotes/10.2.0.rst index fca8fe67c..bd06e09fc 100644 --- a/docs/releasenotes/10.2.0.rst +++ b/docs/releasenotes/10.2.0.rst @@ -24,7 +24,7 @@ Zero or negative font size error ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ When creating a :py:class:`~PIL.ImageFont.FreeTypeFont` instance, either directly or -through :py:func:`~PIL.ImageFont.truetype`, if the font size is not greater than zero, a +through :py:func:`~PIL.ImageFont.truetype`, if the font size is zero or less, a :py:exc:`ValueError` will now be raised. API Additions