From d008163e327294d1ddcb93402fc4332cad7e7410 Mon Sep 17 00:00:00 2001 From: Erzangel Date: Tue, 23 Jul 2024 23:12:12 +0200 Subject: [PATCH] fix: image sizing to force no overflow --- src/generate_cards_mvp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generate_cards_mvp.py b/src/generate_cards_mvp.py index 8cc0626..a29d0b0 100644 --- a/src/generate_cards_mvp.py +++ b/src/generate_cards_mvp.py @@ -215,7 +215,7 @@ for card_data in cards: d.append(dw.Rectangle(x=1, y=65, width=x_width-2, height=200)) d.append( dw.Image( - x=0, y=65, width=x_width, height=200, path=card_skin_data["image_path"] + x=border_width_x, y=65, width=x_width-(border_width_x*2), height=200, path=card_skin_data["image_path"] ) ) d.append(dw.Rectangle(x=2, y=65-1, width=border_width_x-2, height=200+2))