Adding the reset function
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user