Skip to content

Commit

Permalink
Updated QR.py
Browse files Browse the repository at this point in the history
  • Loading branch information
akadeepesh committed Oct 16, 2022
1 parent 233edb9 commit 5899092
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions Qr-generator/QR.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import qrcode
import image
qr=qrcode.QRCode(
version = 15, #15 means the version of the qr code high the number bigger the ocde image and compicated
box_size= 10, #size of the box where the qr code will be displayed
border = 5, # to show the border of the box
)
data =""#add the website link in the data field.
qr.add_data(data)
qr.make(fit=True)
img=qr.make_image(fill="red",back_color="silver")
img.save("test.png")
import pyqrcode
import png
from pyqrcode import QRCode

s = input("Enter Url Of Website, To create QR Code")
url = pyqrcode.create(s)
url.svg("myqr.svg", scale = 8)
url.png('myqr.png', scale = 6)

0 comments on commit 5899092

Please sign in to comment.