From a35cc9f634a297492c0e81b4361f55e783016f35 Mon Sep 17 00:00:00 2001 From: Aashit Agrawal Date: Sat, 21 Oct 2023 16:48:57 +0530 Subject: [PATCH] added a QR code generator --- QR Code Generator/QRcode.py | 8 ++++++++ QR Code Generator/qrcode.png | Bin 0 -> 1231 bytes README.md | 1 + 3 files changed, 9 insertions(+) create mode 100644 QR Code Generator/QRcode.py create mode 100644 QR Code Generator/qrcode.png diff --git a/QR Code Generator/QRcode.py b/QR Code Generator/QRcode.py new file mode 100644 index 0000000..adf4bcd --- /dev/null +++ b/QR Code Generator/QRcode.py @@ -0,0 +1,8 @@ +import qrcode + +qr = qrcode.QRCode(version=1, error_correction=qrcode.constants.ERROR_CORRECT_L) +qr.add_data("INSERT YOUR LINK HERE") +qr.make(fit=True) + +img = qr.make_image(fill_color="black", back_color="white") +img.save("qrcode.png") diff --git a/QR Code Generator/qrcode.png b/QR Code Generator/qrcode.png new file mode 100644 index 0000000000000000000000000000000000000000..0c31007ca04adfa2e686778737128ee833cd7535 GIT binary patch literal 1231 zcmeAS@N?(olHy`uVBq!ia0y~yU{nHO4kn<;r8^!E85mfmdAc};RLpsMcjG!KLji}2 zs;B<{H_8m&xlvE36mwCq_A1ebo8Ss^WVH* z55E5{eYIG5{dMbK)34vZ`m1>N{=I?UrPo@XRZurRagwLVsCmvAWM+8|SIXNfw|{M& zyRu_$X3xwtyU%A%iY~|H-ZsC+HKqB#(*4ZVoSmcpQTp%sOdS5&slD7GZ;SEn4WG9g zr@PekUdFT=;-X~^b}7$%RcqRCstEUMypiy6|IGWx&Mdb&iqpb{!3z7gSti>WZ~UBF zVt(k)t^6&AaVoz4`Nqu;oOeywKH~`*@e}9NI_I91T)r*-%$;2q-zr#s-D&(ha}KUp zl&(@fv+`w2u&~PAH-}c{7ri|eU(k-zTgR6<b9eo04)(h%zB&1stoib?`S@LMru^sKl0#>B#j@`P-?i}H{LBO`>A@1@ zoeP>1w$9wX`b^2=Ge^D`;tGLxr!*%>&z*Jb#kZ_Ew|X|26|e5X=~iHxdUE}loR#@K z@y9r=of@oQ?q@dV)~<_ZJI?Hxp8o7VFTQkt=FW=(FY}uljFm6>PI!~^+klnH-V19= pc=y#t`2MWJ<~Y4VgJR$xqfO+Cc-HVLU^&IW;OXk;vd$@?2>`mpD!~8% literal 0 HcmV?d00001 diff --git a/README.md b/README.md index c091135..3205dbc 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,7 @@ More information on contributing and the general code of conduct for discussion | Password Manager | [Password Manager](https://github.com/nem5345/Python-Scripts/tree/master/Password%20Manager) | Generate and interact with a password manager. | | PDF to Audio | [PDF to Audio](https://github.com/DhanushNehru/Python-Scripts/tree/master/PDF%20to%20Audio) | Converts PDF to audio. | | Planet Simulation | [Planet Simulation](https://github.com/DhanushNehru/Python-Scripts/tree/master/Planet%20Simulation) | A simulation of several planets rotating around the sun. | +| QR Code Generator | [QR Code Generator](https://github.com/DhanushNehru/Python-Scripts/tree/master/QR%20Code%20Generator) | This is generate a QR code from the provided link | | Remove Background | [Remove Background](https://github.com/DhanushNehru/Python-Scripts/tree/master/Remove%20Background) | Removes the background of images. | | ROCK-PAPER-SCISSOR | [ROCK-PAPER-SCISSOR](https://github.com/DhanushNehru/Python-Scripts/tree/master/Rock%20Paper%20Scissor) | A game of Rock Paper Scissors. | | Random Color Generator | [Random Color Generator](https://github.com/DhanushNehru/Python-Scripts/tree/master/Random%20Color%20Generator) | A random color generator that will show you the color and values! |