Skip to content

Commit

Permalink
Replace deprecated Image.ANTIALIAS
Browse files Browse the repository at this point in the history
Fixes issue #884.
  • Loading branch information
tkeffer committed Aug 22, 2023
1 parent 2dfe1ce commit 2482eeb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion bin/weeplot/genplot.py
Expand Up @@ -223,7 +223,9 @@ def render(self):
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

Expand Down
7 changes: 4 additions & 3 deletions docs_src/changes.md
Expand Up @@ -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.

Expand Down

0 comments on commit 2482eeb

Please sign in to comment.