Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image in the center of QR code #27

Open
LateusBetelgeuse opened this issue Apr 6, 2023 · 1 comment
Open

Image in the center of QR code #27

LateusBetelgeuse opened this issue Apr 6, 2023 · 1 comment

Comments

@LateusBetelgeuse
Copy link

Allow setting an image in the center of the generated QR code. For example, in Telegram Desktop:

imagen

Ideally, this should support any Item-based object (for example, to be able set a lottie animation or a button, progress bar, etc.)

@radkoder
Copy link
Contributor

Hi,
This is technically possible now, as the image in the QrCode simply obscures part of the code and relies on the error correction to reconstruct hidden data. (Source: link)
So You can just put a Rectangle or Image element in the center of the code, and set high ecc level (8 is max), and it's done.

Since this is as simple as putting an additional QML element on top of the code and also works only for QrCodes, I'm not sure if there is a good way of supporting it on SCodes level. We can maybe add a Proof of Concept in the generator example, but that's about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants