Replace deprecated Image.ANTIALIAS

Fixes issue #884.
This commit is contained in:
Tom Keffer
2023-08-22 11:49:38 -07:00
parent 2dfe1ce5f6
commit 2482eebf8a
2 changed files with 7 additions and 4 deletions

View File

@@ -223,7 +223,9 @@ class GeneralPlot(object):
self._renderRose(image, draw)
if self.anti_alias != 1:
image.thumbnail((self.image_width / self.anti_alias, self.image_height / self.anti_alias), Image.ANTIALIAS)
image.thumbnail((self.image_width / self.anti_alias,
self.image_height / self.anti_alias),
Image.LANCZOS)
return image

View File

@@ -32,9 +32,10 @@ Users can opt to add it back in by following the wiki on
MacOS now logs to `syslog` like any other system, rather than `rotate`.
Method `ImageDraw.textsize()` and constant `ImageFont.LAYOUT_BASIC` were
deprecated in Pillow 9.2 (1-Jul-2022), then removed in Pillow 10.0 (1-Jul-2023).
V5.0 replaces them with alternatives.
Method `ImageDraw.textsize()` and constants `ImageFont.LAYOUT_BASIC`, and
`Image.ANTIALIAS` were deprecated in Pillow 9.2 (1-Jul-2022), then removed in
Pillow 10.0 (1-Jul-2023). V5.0 replaces them with alternatives. Fixes issue
#884.
Fix bug when using Pillow v9.5.0. Fixes issue #862.