Skip to content

SvgQRCode with logo and disable quitzones has a hole #500

Closed
@TheBlubb14

Description

@TheBlubb14

Type of issue

  • Bug
  • Question (e.g. about handling/usage)
  • Request for new feature/improvement

Expected Behavior

When generating a graphic with SvgQRCode, using a logo and disabling the quitezones. The logo is in the middle of the qr code and the qr code is intact.

Current Behavior

There is a "hole" in the top left area of the qr code and the image overlaps pixels.
grafik

Steps to Reproduce (for bugs)

I have setup a simple blazor web ui here: https://theblubb14.github.io/QrCoderBlazor/
Source code is available here: https://github.com/TheBlubb14/QrCoderBlazor/blob/main/QrCoderBlazor/App.razor
Sample logo you can download from here: https://avatars.githubusercontent.com/u/94650532

  1. Download the above logo and select it in the ui for upload
  2. Disable the checkbox quiet zones
  3. Enter one letter in the input
  4. Click the button generate

Your Environment

  • Version used: 1.4.3
  • Compiled from source or NuGet package?: Use latest available nuget package and copied SvgQRCode from source as the new changes to add a logo are not yet available via nuget. I removed some constructors which where not compatible and removed the #ifs to make it run under .net 8
  • Payload/Encoded text: a
  • Used ECC-level: M
  • Used renderer class: SvgQRCode
  • Environment: net8.0 blazor webassembly

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions