From 0a26edef4545b0e796b56dcfa144d0c5d4fde0b5 Mon Sep 17 00:00:00 2001 From: Diego Torres Milano Date: Fri, 27 Sep 2024 18:29:07 -0700 Subject: [PATCH] Replace deprecated ANTIALIAS algorithm --- src/com/dtmilano/android/culebron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/dtmilano/android/culebron.py b/src/com/dtmilano/android/culebron.py index 9bc732e2..0703b4cf 100644 --- a/src/com/dtmilano/android/culebron.py +++ b/src/com/dtmilano/android/culebron.py @@ -412,7 +412,7 @@ def takeScreenshotAndShowItOnWindow(self): if self.scale != 1: scaledWidth = int(width * self.scale) scaledHeight = int(height * self.scale) - self.image = self.image.resize((scaledWidth, scaledHeight), PIL.Image.ANTIALIAS) + self.image = self.image.resize((scaledWidth, scaledHeight), PIL.Image.LANCZOS) (width, height) = self.image.size if self.isDarwin and 14 < self.sdkVersion < 23: if sys.version_info[0] < 3: