From ba1c0d0497c48c7b28e53199747e498e9a1da9c8 Mon Sep 17 00:00:00 2001 From: Till Steinbach Date: Fri, 7 Jul 2023 14:23:19 +0200 Subject: [PATCH] change for pillow new constants --- weconnect/elements/vehicle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weconnect/elements/vehicle.py b/weconnect/elements/vehicle.py index 0d0d481..1782e66 100644 --- a/weconnect/elements/vehicle.py +++ b/weconnect/elements/vehicle.py @@ -588,7 +588,7 @@ def updateStatusPicture(self) -> None: # noqa: C901 draw = ImageDraw.Draw(imgWithBadges) draw.ellipse(((imgWidth - 100), warningLightoffset, (imgWidth - 1), (warningLightoffset + 100)), fill=(0, 0, 0, 200)) lightImage = warningLight.icon.value - lightImage = lightImage.resize((64, 64), Image.ANTIALIAS) + lightImage = lightImage.resize((64, 64), Image.LANCZOS) imgWithBadges.paste(lightImage, ((imgWidth - 82), warningLightoffset + 18), lightImage) warningLightoffset += 110 @@ -614,7 +614,7 @@ def updateStatusPicture(self) -> None: # noqa: C901 draw = ImageDraw.Draw(carWithBadges) draw.ellipse(((imgWidth - 100), warningLightoffset, (imgWidth - 1), (warningLightoffset + 100)), fill=(0, 0, 0, 200)) lightImage = warningLight.icon.value - lightImage = lightImage.resize((64, 64), Image.ANTIALIAS) + lightImage = lightImage.resize((64, 64), Image.LANCZOS) carWithBadges.paste(lightImage, ((imgWidth - 82), warningLightoffset + 18), lightImage) warningLightoffset += 110