Created
July 21, 2023 04:59
-
-
Save rajrao/9bf42f2c6e170fea2764767aa14f135a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import qrcode | |
from PIL import Image | |
data = "https://www.aggregatedIntelligence.com/" | |
qr = qrcode.QRCode(version=1, box_size=10, border=5) qr.add_data(data) | |
qr.make(fit=True) | |
image = qr.make_image (fill="black", back_color="white") | |
image.save("qr.png") | |
Image.open("qr.png") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment