From 1ed39726c57cd2d094f9a9a90be08814678f6190 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 14 Mar 2026 13:23:30 +1100 Subject: [PATCH 1/3] Added release notes for #9419 --- docs/releasenotes/12.2.0.rst | 63 ++++++++++++++++++++++++++++++++++++ docs/releasenotes/index.rst | 1 + 2 files changed, 64 insertions(+) create mode 100644 docs/releasenotes/12.2.0.rst diff --git a/docs/releasenotes/12.2.0.rst b/docs/releasenotes/12.2.0.rst new file mode 100644 index 00000000000..aa1206cd09a --- /dev/null +++ b/docs/releasenotes/12.2.0.rst @@ -0,0 +1,63 @@ +12.2.0 +------ + +Security +======== + +TODO +^^^^ + +TODO + +:cve:`YYYY-XXXXX`: TODO +^^^^^^^^^^^^^^^^^^^^^^^ + +TODO + +Backwards incompatible changes +============================== + +TODO +^^^^ + +TODO + +Deprecations +============ + +TODO +^^^^ + +TODO + +API changes +=========== + +TODO +^^^^ + +TODO + +API additions +============= + +FontFile.to_imagefont() +^^^^^^^^^^^^^^^^^^^^^^^ + +:py:class:`~PIL.FontFile.FontFile` instances can now be directly converted to +:py:class:`~PIL.ImageFont.ImageFont` instances:: + + >>> from PIL import PcfFontFile + >>> with open("Tests/fonts/10x20-ISO8859-1.pcf", "rb") as fp: + ... pcffont = PcfFontFile.PcfFontFile(fp) + ... pcffont.to_imagefont() + ... + + +Other changes +============= + +TODO +^^^^ + +TODO diff --git a/docs/releasenotes/index.rst b/docs/releasenotes/index.rst index 690be20729e..07687297933 100644 --- a/docs/releasenotes/index.rst +++ b/docs/releasenotes/index.rst @@ -15,6 +15,7 @@ expected to be backported to earlier versions. :maxdepth: 2 versioning + 12.2.0 12.1.1 12.1.0 12.0.0 From ccf9863ba8595b5920ee3883ffc9aba01e92ff7f Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 14 Mar 2026 13:23:44 +1100 Subject: [PATCH 2/3] Added release notes for #9394 --- docs/releasenotes/12.2.0.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/releasenotes/12.2.0.rst b/docs/releasenotes/12.2.0.rst index aa1206cd09a..0bbb9b82473 100644 --- a/docs/releasenotes/12.2.0.rst +++ b/docs/releasenotes/12.2.0.rst @@ -33,10 +33,14 @@ TODO API changes =========== -TODO -^^^^ +Error when encoding an empty image +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -TODO +Attempting to encode an image with zero width or height would previously raise +a :py:exc:`SystemError`. That has now been changed to a :py:exc:`ValueError`. + +This does not add any new errors. SGI, ICNS and ICO formats are still able to +save (0, 0) images. API additions ============= From 3121c77cad919703c2d5c77116a03422ba744d7f Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 28 Mar 2026 19:19:48 +1100 Subject: [PATCH 3/3] Added release notes for #9456 --- docs/releasenotes/12.2.0.rst | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/docs/releasenotes/12.2.0.rst b/docs/releasenotes/12.2.0.rst index 0bbb9b82473..66526592a6c 100644 --- a/docs/releasenotes/12.2.0.rst +++ b/docs/releasenotes/12.2.0.rst @@ -14,22 +14,6 @@ TODO TODO -Backwards incompatible changes -============================== - -TODO -^^^^ - -TODO - -Deprecations -============ - -TODO -^^^^ - -TODO - API changes =========== @@ -61,7 +45,8 @@ FontFile.to_imagefont() Other changes ============= -TODO -^^^^ +Support reading JPEG2000 images with CMYK palettes +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -TODO +JPEG2000 images with CMYK palettes can now be read. This is the first integration of +CMYK palettes into Pillow.