Open rugk opened 6 years ago
@rugk this is actually something that I've wanted to do for some time now but just need to find the time to get around to it. The other benefit is that I could drop the node-canvas dependency from the Node.js version. I could even potentially merge the projects under a single package again depending on how it's implemented. It would hopefully solve/abstract a lot of the sizing issues we have, which are what put me off coming back to this project sometimes, as there's bigger issues I want to address (e.g. compatibility issues, utf8 support).
Well… IMHO I would still offer canvas as an option – maybe one rather likes to use it. Mhh…
BTW for my add-on I also looked for SVG qr code generators and found e.g. this one: https://github.com/papnkukn/qrcode-svg
My QR Code generator library supports SVG as one of its output formats. Have a look at qrcodegen.js#L167.
Maybe you can add generation as an SVG image?
The advantage would be that it is easily re-size/scalable.