From 227f66dbff76e4949557e8c34820fa69d9bf5f30 Mon Sep 17 00:00:00 2001 From: Mikkeli Matlock Date: Mon, 16 Feb 2026 14:52:20 +0900 Subject: [PATCH] new layout + 200px status images --- contents_server.py | 2 +- image_handler.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contents_server.py b/contents_server.py index d61834e..40546c5 100644 --- a/contents_server.py +++ b/contents_server.py @@ -6,7 +6,7 @@ connected ESP32 dashboard client on port 8766. Protocol: Status image: - 1. Text frame: {"type":"status_image","width":120,"height":120} + 1. Text frame: {"type":"status_image","width":200,"height":200} 2. Binary frame: 1-bit monochrome bitmap Alarm audio: diff --git a/image_handler.py b/image_handler.py index 24aa94b..4e00bc7 100644 --- a/image_handler.py +++ b/image_handler.py @@ -9,12 +9,12 @@ from PIL import Image log = logging.getLogger(__name__) IMG_DIR = Path(__file__).parent / "assets" / "img" -STATUS_IMG_SIZE = 120 +STATUS_IMG_SIZE = 200 MONOCHROME_THRESHOLD = 180 def load_status_image(path: Path) -> bytes: - """Load a PNG, convert to 1-bit 120x120 monochrome bitmap (MSB-first, black=1). + """Load a PNG, convert to 1-bit 200x200 monochrome bitmap (MSB-first, black=1). Transparent pixels are composited onto white so they don't render as black. """