From 21eec5ce7599f199c32f8042b406eb31a90036f5 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 7 Oct 2023 14:48:19 +1100 Subject: [PATCH 1/4] Added release notes for #7355 --- docs/releasenotes/10.1.0.rst | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/releasenotes/10.1.0.rst b/docs/releasenotes/10.1.0.rst index af995dc15b4..31b3e57ec74 100644 --- a/docs/releasenotes/10.1.0.rst +++ b/docs/releasenotes/10.1.0.rst @@ -24,10 +24,16 @@ TODO API Changes =========== -TODO -^^^^ +Accept a list in getpixel() +^^^^^^^^^^^^^^^^^^^^^^^^^^^ -TODO +py:meth:`~PIL.Image.Image.getpixel` now accepts a list of coordinates, as well +as a tuple. :: + + from PIL import Image + im = Image.new("RGB", (1, 1)) + im.getpixel((0, 0)) + im.getpixel([0, 0]) API Additions ============= From 2d5421f28fe3166bce6566a997c0c5a37b8d903c Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 7 Oct 2023 14:48:35 +1100 Subject: [PATCH 2/4] Added release notes for #7336 --- docs/releasenotes/10.1.0.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/releasenotes/10.1.0.rst b/docs/releasenotes/10.1.0.rst index 31b3e57ec74..937fc133294 100644 --- a/docs/releasenotes/10.1.0.rst +++ b/docs/releasenotes/10.1.0.rst @@ -35,6 +35,17 @@ as a tuple. :: im.getpixel((0, 0)) im.getpixel([0, 0]) +BoxBlur and GaussianBlur allow for different x and y radii +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +py:meth:`~PIL.ImageFilter.BoxBlur` and py:meth:`~PIL.ImageFilter.GaussianBlur` +now allow a sequence of x and y radii to be specified, rather than a single +number for both dimensions. :: + + from PIL import ImageFilter + ImageFilter.BoxBlur((2, 5)) + ImageFilter.GaussianBlur((2, 5)) + API Additions ============= From 0d7fb401e0b57f0b92aa80a468eb292a266fc3c5 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 7 Oct 2023 14:50:11 +1100 Subject: [PATCH 3/4] Added release notes for #7358 --- docs/releasenotes/10.1.0.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/releasenotes/10.1.0.rst b/docs/releasenotes/10.1.0.rst index 937fc133294..15d00c053c4 100644 --- a/docs/releasenotes/10.1.0.rst +++ b/docs/releasenotes/10.1.0.rst @@ -71,10 +71,11 @@ TODO Other Changes ============= -Added support for DDS 8-bit color indexed images -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +Added support for DDS BC5U and 8-bit color indexed images +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -Support has been added to read PALETTEINDEXED8 DDS files as P mode images. +Support has been added to read BC5U DDS files as RGB images, and +PALETTEINDEXED8 DDS files as P mode images. Support reading signed 8-bit YCbCr TIFF images ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ From 82bcedb860fa5e0bf3e0e07010ede86c9d6db413 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 7 Oct 2023 15:02:24 +1100 Subject: [PATCH 4/4] Added release notes for #7392 --- docs/releasenotes/10.1.0.rst | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/docs/releasenotes/10.1.0.rst b/docs/releasenotes/10.1.0.rst index 15d00c053c4..d1fdd4d518c 100644 --- a/docs/releasenotes/10.1.0.rst +++ b/docs/releasenotes/10.1.0.rst @@ -13,21 +13,13 @@ not about removing existing functionality, but instead about raising an explicit error to prevent later consequences. The ``convert`` method is the correct way to change an image's mode. -Deprecations -============ - -TODO -^^^^ - -TODO - API Changes =========== Accept a list in getpixel() ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -py:meth:`~PIL.Image.Image.getpixel` now accepts a list of coordinates, as well +:py:meth:`~PIL.Image.Image.getpixel` now accepts a list of coordinates, as well as a tuple. :: from PIL import Image @@ -38,9 +30,9 @@ as a tuple. :: BoxBlur and GaussianBlur allow for different x and y radii ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -py:meth:`~PIL.ImageFilter.BoxBlur` and py:meth:`~PIL.ImageFilter.GaussianBlur` -now allow a sequence of x and y radii to be specified, rather than a single -number for both dimensions. :: +:py:class:`~PIL.ImageFilter.BoxBlur` and +:py:class:`~PIL.ImageFilter.GaussianBlur` now allow a sequence of x and y radii +to be specified, rather than a single number for both dimensions. :: from PIL import ImageFilter ImageFilter.BoxBlur((2, 5)) @@ -49,6 +41,14 @@ number for both dimensions. :: API Additions ============= +EpsImagePlugin.gs_binary +^^^^^^^^^^^^^^^^^^^^^^^^ + +``EpsImagePlugin.gs_windows_binary`` stores the name of the Ghostscript +executable on Windows. ``EpsImagePlugin.gs_binary`` has now been added for all +platforms, and can be used to customise the name of the executable, or disable +use entirely through ``EpsImagePlugin.gs_binary = False``. + has_transparency_data ^^^^^^^^^^^^^^^^^^^^^ @@ -60,14 +60,6 @@ channel, a palette with an alpha channel, or a "transparency" key in the Even if this attribute is true, the image might still appear solid, if all of the values shown within are opaque. -Security -======== - -TODO -^^^^ - -TODO - Other Changes =============