##making a qr code
# sb se pehle import qrcode and img
# input link
# qrcode shape-- version box_size border
# qr ke andar add kren data link
# make it fit true
# img -- qr.make img(color backcolor)
# img ko save as png --- img.save("test.png")
import qrcode
import image
print("THIS IS A QR CODE GENERATOR")
link_data = input("Paste your link here for the qr code : ")
qr = qrcode.QRCode(
version=20,
box_size=20,
border=10
)
data = link_data
qr.add_data(data)
qr.make(fit=True)
img = qr.make_image(fill = "red",back_color="green")
img.save("QR generator.jpg")
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter