ushelp / EasyQRCodeJS-NodeJS

EasyQRCodeJS-NodeJS is a NodeJS server side javascript QRCode image(PNG/JPEG/SVG/Base64 data url) generator. Support setting Dot style, Logo, Background image, Colorful, Title and more. Support binary(hex) data mode.
https://easyproject.cn/easyqrcode
MIT License
103 stars 53 forks source link

Generated QR Code has black background #9

Closed dashawk closed 3 years ago

dashawk commented 3 years ago

Hi, I have just generated my first qr code but it resulted into a black background. See screenshot. image

And here is my configuration.

var data = {
  "text": "This is the content",
  "correctLevel": 0,
  "PO": "#e1622f",
  "backgroundImageAlpha":0,
  "logo":"https://...4965-8538-243d3956946f.png",
  "AI":"#ffffff",
  "AO":"#ffffff",
  "timing":"#e1622f"
}

Then I call this.

   const qrcode = new QRCode(data);
   const result = await qrcode.toDataURL();

How can I remove the black background?