From 5c0c5961c31a519e67eaf2a4ea8fd2a28f40e5c9 Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Thu, 25 Jun 2026 22:47:26 -0400 Subject: [PATCH] let loader handle images --- modes/score.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/modes/score.py b/modes/score.py index 21e4f96..9eb6a60 100644 --- a/modes/score.py +++ b/modes/score.py @@ -81,13 +81,9 @@ def _render_game_to_pil(img, game, x_offset): away_logo = logos.load_logo(league, game["away"]) home_logo = logos.load_logo(league, game["home"]) if away_logo: - r, g, b = away_logo.split() - bgr_logo = Image.merge("RGB", (b, g, r)) - img.paste(bgr_logo.resize((14, 14)), (x_offset, 0)) + img.paste(away_logo.resize((14, 14)), (x_offset, 0)) if home_logo: - r, g, b = home_logo.split() - bgr_logo = Image.merge("RGB", (b, g, r)) - img.paste(bgr_logo.resize((14, 14)), (x_offset, 16)) + img.paste(home_logo.resize((14, 14)), (x_offset, 16)) # divider on right edge (except last slot handled by wrapping) for row in range(PANEL_HEIGHT):