-
Notifications
You must be signed in to change notification settings - Fork 0
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
Any plan to beautify the qrcode? #1
Comments
Those are some cool looking QR codes! There is no support for this kind of styling at present, I can think of a few ways you could possibly achieve this at the moment.
I will mark this as a future enhancement, but it may be some time before it gets implemented. |
If i want create many QR , should i use const IotaQR = require("@tangle-frost/iota-qr-lib");
function async createQR(qrid) {
// 0 autodetect
// 1:7% 0:15% 3:25% 2:30%
const qr = new IotaQR.QR(0, 0);
qr.addText(qrid);
const qrCellData = qr.generate();
const cellSize = 10;
const marginSize = 40;
const jpegRenderer = IotaQR.QRRendererFactory.instance().create("jpg");
const imgDOM = await jpegRenderer.renderHtml(qrCellData, cellSize, marginSize);
return imgDOM.src;
}
for(let i=0; i<10000; i++) {
createQR(i) ;
} |
Nice job! I think it is the most cool js-qrcode lib in github!
I see the foreground & background parameter in renderer, and i want to find a way to add some logo in the center of the qrcode and change the style of the fill pattern, can you give me some suggestions?
Thanks 👍
The text was updated successfully, but these errors were encountered: