wedding invitation, different layout

This commit is contained in:
2020-02-18 17:53:58 -06:00
parent a58542ffa1
commit 8410662997
13 changed files with 181 additions and 0 deletions

15
wedding-invi-vi/qrGen.py Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env python3
import qrcode
for fname in ["qrEvent_en", "qrEvent_vi"]:
qr = qrcode.QRCode(
version=2,
error_correction=qrcode.constants.ERROR_CORRECT_Q,
box_size=5,
border=1)
with open(f"{fname}.txt") as fp:
qr.add_data(fp.read())
qr.make(fit=True)
img = qr.make_image(fill_color="orangered", back_color="white")
img.save(f"{fname}.png")