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. """