schoero / swissqrbill

Swiss QR Bill generation in Node.js and browsers
MIT License
155 stars 29 forks source link

Expose a function to only get the QRCode with the swiss cross #382

Closed Jan-Vermeulen closed 2 years ago

Jan-Vermeulen commented 2 years ago

Greetings ! Could you add the possibility to generate an SVG with the QRCode only ? I would need to have that to display it in a web page without all the other informations 😊

schoero commented 2 years ago

I have seen other libraries in other programming languages support this, and my personal opinion is that this could have legitimate applications in real life and I think the recognition value as a QR-Bill is still provided by the swiss cross in the center.

But I don't want to add this as a feature, because I am pretty sure that this doesn't comply with the specifications and violates the design guidelines of the QR-Bill.

However, it may already be possible in a hacky way: https://github.com/schoero/SwissQRBill/discussions/374, jsfiddle

Let me know if that works for you.

Jan-Vermeulen commented 2 years ago

Thanks for the quick answer !

It's working perfectly 💪