qrious icon indicating copy to clipboard operation
qrious copied to clipboard

SVG generation

Open rugk opened this issue 7 years ago • 4 comments

Maybe you can add generation as an SVG image?

The advantage would be that it is easily re-size/scalable.

rugk avatar Apr 27 '18 13:04 rugk

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

neocotic avatar Apr 27 '18 15:04 neocotic

Well… IMHO I would still offer canvas as an option – maybe one rather likes to use it. Mhh…

rugk avatar Apr 27 '18 16:04 rugk

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

rugk avatar Apr 27 '18 16:04 rugk

My QR Code generator library supports SVG as one of its output formats. Have a look at qrcodegen.js#L167.

nayuki avatar Aug 27 '18 03:08 nayuki