kozakdenys / qr-code-styling

Automaticly generate your styled QR code in your web app.
https://qr-code-styling.com
MIT License
1.56k stars 499 forks source link

Is it possible to customize the QR Code more? #198

Open missakation opened 9 months ago

missakation commented 9 months ago

Not an issue but a question. I have seen in other platforms where you can customize the shape of the eyes, such as make it a star, heart, sun, and diamond shapes. How is it possible to achieve those?

I have also seen some places where you can add frames surrounding the qrcode such as "SCAN ME" and these kind of stuff.

If you can guide me on this, it would be very helpful!

Thanks.

samerlol commented 4 months ago

I love this feature to be in this package.

kozakdenys commented 1 month ago

Hi @missakation @samerlol sorry for missing for so long 🥹

Here is open PRs with additional dot styles so I will merge it soon.

In version v1.6.0 and above was introduced applyExtension method, you can find it in the documentation.

extension is a function that takes svg and options and can modify them.

Using example from documentation you can create border like this:

Code example ``` QR Code Styling
```

But if you want to support this project you can use my qr-border-plugin. It is more customizable and I will add more examples soon.