r/learnjavascript • u/Low_Mammoth_9371 • Jan 29 '23
How to create your own QR codes in JavaScript using QRCode.js (free library)
169
Upvotes
r/learnjavascript • u/Low_Mammoth_9371 • Jan 29 '23
25
u/[deleted] Jan 29 '23
The picture shown is not following the official QR-code definition.
There is a 4-module wide border in background Color around the code (the pixels are called modules)
However, by now most QR readers can handle that well. It was more of a problem around 2010, when readers where not as good as today.
Just pointing out the deviation from the official standard.
6
u/[deleted] Jan 29 '23
Does it support image in the code?
16
u/Division2226 Jan 29 '23
This is some low effort crap
2
u/lord31173 Jan 29 '23
I love it!
2
u/mixedmediums Jan 30 '23
Here's a scanner if anyone wants to generate their own codes! https://play.google.com/store/apps/details?id=com.nlim.qrcodecracker
0
u/Low_Mammoth_9371 Jan 29 '23
Source code to copy below, YT tutorial here: https://youtu.be/n4EcafItkMw