File tree Expand file tree Collapse file tree 3 files changed +47
-0
lines changed
Expand file tree Collapse file tree 3 files changed +47
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,11 @@ Constants
7474A number of constants have been deprecated and will be removed in Pillow 10.0.0
7575(2023-07-01). Instead, ``enum.IntEnum `` classes have been added.
7676
77+ .. note ::
78+
79+ Additional ``Image `` constants were deprecated in Pillow 9.1.0, but they
80+ were later restored in Pillow 9.4.0. See :ref: `restored-image-constants `
81+
7782===================================================== ============================================================
7883Deprecated Use instead
7984===================================================== ============================================================
Original file line number Diff line number Diff line change @@ -53,6 +53,11 @@ Constants
5353A number of constants have been deprecated and will be removed in Pillow 10.0.0
5454(2023-07-01). Instead, ``enum.IntEnum `` classes have been added.
5555
56+ .. note ::
57+
58+ Some of these deprecations were restored in Pillow 9.4.0. See
59+ :ref: `restored-image-constants `
60+
5661===================================================== ============================================================
5762Deprecated Use instead
5863===================================================== ============================================================
Original file line number Diff line number Diff line change @@ -103,3 +103,40 @@ Added support for DDS L and LA images
103103
104104Support has been added to read and write L and LA DDS images in the uncompressed
105105format, known as "luminance" textures.
106+
107+ .. _restored-image-constants :
108+
109+ Constants
110+ ^^^^^^^^^
111+
112+ In Pillow 9.1.0, the following constants were deprecated. Those deprecations have now
113+ been restored.
114+
115+ - ``Image.NONE ``
116+ - ``Image.NEAREST ``
117+ - ``Image.ORDERED ``
118+ - ``Image.RASTERIZE ``
119+ - ``Image.FLOYDSTEINBERG ``
120+ - ``Image.WEB ``
121+ - ``Image.ADAPTIVE ``
122+ - ``Image.AFFINE ``
123+ - ``Image.EXTENT ``
124+ - ``Image.PERSPECTIVE ``
125+ - ``Image.QUAD ``
126+ - ``Image.MESH ``
127+ - ``Image.FLIP_LEFT_RIGHT ``
128+ - ``Image.FLIP_TOP_BOTTOM ``
129+ - ``Image.ROTATE_90 ``
130+ - ``Image.ROTATE_180 ``
131+ - ``Image.ROTATE_270 ``
132+ - ``Image.TRANSPOSE ``
133+ - ``Image.TRANSVERSE ``
134+ - ``Image.BOX ``
135+ - ``Image.BILINEAR ``
136+ - ``Image.HAMMING ``
137+ - ``Image.BICUBIC ``
138+ - ``Image.LANCZOS ``
139+ - ``Image.MEDIANCUT ``
140+ - ``Image.MAXCOVERAGE ``
141+ - ``Image.FASTOCTREE ``
142+ - ``Image.LIBIMAGEQUANT ``
You can’t perform that action at this time.
0 commit comments