QR code maker

master
Paco Hope 2023-01-20 08:17:04 -05:00
parent a75d7775c4
commit 9004f37b45
2 changed files with 10 additions and 0 deletions

BIN
cdk/img_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

10
cdk/make-qr.py Normal file
View File

@ -0,0 +1,10 @@
import qrcode
from qrcode.image.styledpil import StyledPilImage
from qrcode.image.styles.moduledrawers import CircleModuleDrawer
qr = qrcode.QRCode(error_correction=qrcode.constants.ERROR_CORRECT_L)
qr.add_data('https://git.paco.to/nick/sciencefair2023')
img_1 = qr.make_image(image_factory=StyledPilImage,
module_drawer=CircleModuleDrawer())
img_1.save("img_1.png")