Skip to content

Instantly share code, notes, and snippets.

@rajrao
Created July 21, 2023 04:59
Show Gist options
  • Save rajrao/9bf42f2c6e170fea2764767aa14f135a to your computer and use it in GitHub Desktop.
Save rajrao/9bf42f2c6e170fea2764767aa14f135a to your computer and use it in GitHub Desktop.
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