From 11dbcef970b2355648b85c9690c1ada9587f5377 Mon Sep 17 00:00:00 2001 From: legonzaur Date: Mon, 5 Aug 2024 18:32:03 +0200 Subject: [PATCH] feat : actual aspect ratios images Closes #5 --- src/generate_cards_mvp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/generate_cards_mvp.py b/src/generate_cards_mvp.py index 7550b52..bf48a01 100644 --- a/src/generate_cards_mvp.py +++ b/src/generate_cards_mvp.py @@ -220,6 +220,7 @@ for card_data in cards: width=x_width - (border_width_x * 2), height=200, path=card_skin_data["image_path"], + preserveAspectRatio="xMidYMid slice", ) ) d.append(dw.Rectangle(x=2, y=65 - 1, width=border_width_x - 2, height=200 + 2))