From dae670a8e8a939e5ffb9c395351fbff07aa2e1e4 Mon Sep 17 00:00:00 2001 From: Richard Hull Date: Tue, 18 Oct 2022 22:33:48 +0100 Subject: [PATCH] Replace deprecated Image op - fixes #59 --- luma/emulator/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luma/emulator/device.py b/luma/emulator/device.py index 2355d58..2654d09 100644 --- a/luma/emulator/device.py +++ b/luma/emulator/device.py @@ -350,7 +350,7 @@ def _generate_art(self, image, width, height): """ Return an iterator that produces the ascii art. """ - image = image.resize((width, height), Image.ANTIALIAS).convert("RGB") + image = image.resize((width, height), Image.LANCZOS).convert("RGB") pixels = list(image.getdata()) for y in range(0, height - 1, 2):