-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to custom image into middle of generated QR code? #24
Comments
We need this feature to. Is there any way to place an image in a QR? |
This would be an amazing addition . |
@giriannamalai @thereisnobugs, I was just working on this. Little late but hopefully it helps someone. I've uploaded my generator to codepen for reference. 1. Generate the QR Code:const QRCode = require('qrcode-svg');
const qrcode = new QRCode({
content: "Your content here",
padding: 0,
width: 160,
height: 160,
color: #000000,
background: #ffffff,
ecl: M,
join: true,
pretty: true,
swap: false,
xmlDeclaration: true
}); 2. Parse and Modify the SVG Output: After generating the QR code, parse the SVG string output to modify it by adding a
|
It is a feature request.
The text was updated successfully, but these errors were encountered: