Adding the reset function

This commit is contained in:
2026-03-14 12:38:52 -04:00
parent 21533ff4f5
commit ab3481706c
5 changed files with 25 additions and 15 deletions

View File

@@ -6,7 +6,6 @@ import qrcode
def generate_qr_image_bytes(text: str, size: int = 300) -> bytes:
img = qrcode.make(text)
# Ensure RGB for consistent PNG output
if getattr(img, "mode", None) != "RGB":
img = img.convert("RGB")