SCodes icon indicating copy to clipboard operation
SCodes copied to clipboard

Image in the center of QR code

Open LateusBetelgeuse opened this issue 1 year ago • 1 comments

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.)

LateusBetelgeuse avatar Apr 06 '23 09:04 LateusBetelgeuse

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.

radkoder avatar Jan 31 '24 08:01 radkoder