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 Oct 31, 2023
1 parent b074458 commit 21babf4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 3 additions & 1 deletion bin/weeplot/genplot.py
Expand Up @@ -227,7 +227,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
12 changes: 8 additions & 4 deletions docs/changes.txt
@@ -1,6 +1,14 @@
WeeWX change history
--------------------

4.10.3 MM/DD/YYYY

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). Replaces them with alternatives. Fixes issue
#884.


4.10.2 02/22/2023

Removed errant "f-string" in imagegenerator.py.
Expand All @@ -20,10 +28,6 @@ Vantage stations.
Using a bad data binding with an aggregation tag no longer results in an
exception. Instead, it shows the tag in the results. Related to PR #817.

Method `ImageDraw.textsize()` was deprecated in Pillow 9.2 (1-Jul-2022), and
will be removed in Pillow 10.0 (due 1-Jul-2023). Replaced it with workaround
methods.


4.10.1 01/30/2023

Expand Down

0 comments on commit 21babf4

Please sign in to comment.