From 21005d311c252806907242de28beea8986aca0a5 Mon Sep 17 00:00:00 2001 From: w Date: Sun, 20 Jul 2025 00:58:58 -0300 Subject: [PATCH] Add white background to card drawing for improved visibility --- web/templates/card_creator.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/templates/card_creator.html b/web/templates/card_creator.html index 00fcc76..26d6819 100644 --- a/web/templates/card_creator.html +++ b/web/templates/card_creator.html @@ -142,6 +142,10 @@ frameSelect.addEventListener("change", updateFrame); function drawCard() { ctx.clearRect(0, 0, canvas.width, canvas.height); + // Place a white background + ctx.fillStyle = "#FFFFFF"; // white background + // make it smaller than the size of the canvas + ctx.fillRect(30, 30, canvas.width - 60, canvas.height - 60); // Draw uploaded art as cropped and centered background if present if (uploadedImage) {