From 084e283c043d5dbb7282714deabd3ae2f49cc9fd Mon Sep 17 00:00:00 2001 From: ChuckBuilds <33324927+ChuckBuilds@users.noreply.github.com> Date: Fri, 18 Apr 2025 10:26:09 -0500 Subject: [PATCH] Fix NHL logo transparency handling - Use logo as mask when pasting to properly handle transparency - Match the approach used in weather icons --- src/nhl_scoreboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nhl_scoreboard.py b/src/nhl_scoreboard.py index 619bfd35..6bd20c8f 100644 --- a/src/nhl_scoreboard.py +++ b/src/nhl_scoreboard.py @@ -1215,12 +1215,12 @@ class NHLScoreboardManager: if home_logo: home_x = width // 4 - home_logo.width // 2 home_y = height // 4 - home_logo.height // 2 - draw.im.paste(home_logo, (home_x, home_y)) + draw.im.paste(home_logo, (home_x, home_y), home_logo) if away_logo: away_x = width // 4 - away_logo.width // 2 away_y = 3 * height // 4 - away_logo.height // 2 - draw.im.paste(away_logo, (away_x, away_y)) + draw.im.paste(away_logo, (away_x, away_y), away_logo) # Draw scores score_color = (255, 255, 255)