File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments