Closed AmoabaKelvin closed 4 days ago
@AmoabaKelvin I think that maybe width 380 is too small so that qrcode is not sharp enough.
I set the width to 1000 and it looks better.
let qrcode = new QrCodeWithLogo({
content: "https://github.com/zxpsuper",
width: 1000,
image: document.getElementById("image"),
logo: {
src: 'https://avatars.githubusercontent.com/u/28730619?v=4'
},
dotsOptions: {
type: 'dot'
},
cornersOptions: {
type: 'circle-diamond'
},
nodeQrCodeOptions: {
margin: 20
}
});
Creating a qrcode and rendering on a page makes it look kinda blurred. It does not look soo sharp