You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Image Logo visible in result image data
var dataURL = await qrcode.toDataURL();
//Image Logo not visible in result svg object
var dataSVG = await qrcode.toSVGText();`
In this example dataURL is a perfect image with qr code and logo, but dataSVG is a perfect qr code, but the space where the logo image should be it is just blank... any idea why this might be happening?
The text was updated successfully, but these errors were encountered:
Having an issue with toSVGText() not outputting with the logo:
`import QRCode from 'easyqrcodejs-nodejs';
var options = {
text: 'http://www.example.com/test',
width: 315,
height: 315,
colorDark: '#000000',
colorLight: '#FFFFFF',
dotScale: 1,
PO: '#000000',
PI: '#000000',
AO: '#000000',
AI: '#000000',
logo: 'https://www.example.com/img/logo.png',
logoWidth: 59,
logoHeight: 59
}
var qrcode = new QRCode(options);
//Image Logo visible in result image data
var dataURL = await qrcode.toDataURL();
//Image Logo not visible in result svg object
var dataSVG = await qrcode.toSVGText();`
In this example dataURL is a perfect image with qr code and logo, but dataSVG is a perfect qr code, but the space where the logo image should be it is just blank... any idea why this might be happening?
The text was updated successfully, but these errors were encountered: