Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

169
Views
Add logo in qrcodejs

I want to add My logo to a QR Code and I am using the following library - Qrcodejs.

And I am using the following code -

    var qrcode = new QRCode(re, {
        text: inp.value,
        width: 200,
        height: 200,
        colorDark : "#5868bf",
        colorLight : "#ffffff",
        correctLevel : QRCode.CorrectLevel.H
    });

I researched on how to add logo, but got the results for other libraries, but I want this library only.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can do it yourself:

  • Load the generated PNG into a canvas
  • Draw your image into the exact center with a width and height of at most 1/3 of the QR code size

QRcode logo

Or try:

this.qrcode = new QRCode(document.getElementById('qrcode'), {
      logo: logoLink,
      text: link,
      width: 256,
      height: 256,
      colorDark: '#000000',
      colorLight: '#ffffff',
      correctLevel: QRCode.CorrectLevel.H,
      logoWidth: undefined,
      logoHeight: undefined,
      logoBackgroundColor: '#ffffff',
      logoBackgroundTransparent: false,
    });

logo

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!