Skip to content

Commit 4b8ae8e

Browse files
authored
Add release notes for #9394 and #9419 (#9467)
2 parents 91a5a09 + 3121c77 commit 4b8ae8e

2 files changed

Lines changed: 53 additions & 0 deletions

File tree

docs/releasenotes/12.2.0.rst

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
12.2.0
2+
------
3+
4+
Security
5+
========
6+
7+
TODO
8+
^^^^
9+
10+
TODO
11+
12+
:cve:`YYYY-XXXXX`: TODO
13+
^^^^^^^^^^^^^^^^^^^^^^^
14+
15+
TODO
16+
17+
API changes
18+
===========
19+
20+
Error when encoding an empty image
21+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22+
23+
Attempting to encode an image with zero width or height would previously raise
24+
a :py:exc:`SystemError`. That has now been changed to a :py:exc:`ValueError`.
25+
26+
This does not add any new errors. SGI, ICNS and ICO formats are still able to
27+
save (0, 0) images.
28+
29+
API additions
30+
=============
31+
32+
FontFile.to_imagefont()
33+
^^^^^^^^^^^^^^^^^^^^^^^
34+
35+
:py:class:`~PIL.FontFile.FontFile` instances can now be directly converted to
36+
:py:class:`~PIL.ImageFont.ImageFont` instances::
37+
38+
>>> from PIL import PcfFontFile
39+
>>> with open("Tests/fonts/10x20-ISO8859-1.pcf", "rb") as fp:
40+
... pcffont = PcfFontFile.PcfFontFile(fp)
41+
... pcffont.to_imagefont()
42+
...
43+
<PIL.ImageFont.ImageFont object at 0x10457bb80>
44+
45+
Other changes
46+
=============
47+
48+
Support reading JPEG2000 images with CMYK palettes
49+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50+
51+
JPEG2000 images with CMYK palettes can now be read. This is the first integration of
52+
CMYK palettes into Pillow.

docs/releasenotes/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ expected to be backported to earlier versions.
1515
:maxdepth: 2
1616

1717
versioning
18+
12.2.0
1819
12.1.1
1920
12.1.0
2021
12.0.0

0 commit comments

Comments
 (0)