GUI: fix QR generation for PyPNG backend

This commit is contained in:
Ruslan
2026-04-14 12:22:38 +03:00
parent 9b31c5d5c5
commit bdfc648bba

View File

@@ -118,7 +118,7 @@ def gen_keypair_psk():
def to_png_b64(text): def to_png_b64(text):
img = qrcode.make(text) img = qrcode.make(text)
buf = io.BytesIO() buf = io.BytesIO()
img.save(buf, format="PNG") img.save(buf)
return base64.b64encode(buf.getvalue()).decode("ascii") return base64.b64encode(buf.getvalue()).decode("ascii")