-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
233edb9
commit 5899092
Showing
1 changed file
with
7 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
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) |