Skip to content

Logo is being drawn on top of the qr code #15

@kostia1st

Description

@kostia1st

Describe the bug
Well, I'd expect the logo to be drawn at the center, with the actual qr code floating around it.
Instead, the code itself covers the entire rect area including the center, and the logo is drawn on top of it.

To Reproduce

  return await getPNG(value, {
    bgColor,
    color: fgColor,
    logo,
    logoWidth: 20,
    logoHeight: 20,
    parse_url: true,
    borderRadius: 50,
    size: 100,
  });

Expected behavior
I'd expect the logo to be drawn at the center, with the actual qr code floating around it.

Screenshots
chrome_CElz2KPcAq

Desktop (please complete the following information):

  • OS: windows 11
  • Browser Chrome 128
  • Version 9.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions