fix coloring
This commit is contained in:
+2
-2
@@ -82,11 +82,11 @@ def _render_game_to_pil(img, game, x_offset):
|
||||
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))
|
||||
bgr_logo = Image.merge("RGB", (r, g, b))
|
||||
img.paste(bgr_logo.resize((14, 14)), (x_offset, 0))
|
||||
if home_logo:
|
||||
r, g, b = home_logo.split()
|
||||
bgr_logo = Image.merge("RGB", (b, g, r))
|
||||
bgr_logo = Image.merge("RGB", (r, g, b))
|
||||
img.paste(bgr_logo.resize((14, 14)), (x_offset, 16))
|
||||
|
||||
# divider on right edge (except last slot handled by wrapping)
|
||||
|
||||
Reference in New Issue
Block a user