top of page
Search

QR CODE GENERATOR IN PYTHON

  • Writer: waclaw_koscielniak
    waclaw_koscielniak
  • Sep 29
  • 1 min read
import qrcode
from PIL import Image
qr = qrcode.QRCode(
    version=1,
    error_correction=qrcode.constants.ERROR_CORRECT_L,
    box_size=10,
    border=4,
)
qr.add_data('https://www.facebook.com/')
qr.make(fit=True)
img = qr.make_image(fill_color="black", back_color="white")
img.save("QR_Code.png")

img = Image.open('QR_Code.png')
img.show()
print(f"Image size: {img.size}")
print(f"Image format: {img.format}")
Make your own.
Make your own.











 
 
 

1 Comment


Guest
Sep 29

You can generate your own QR Code with Python.

Like
bottom of page