neocotic / qrious

Pure JavaScript library for QR code generation using canvas
https://neocotic.com/qrious
Other
1.55k stars 215 forks source link

SVG generation #112

Open rugk opened 6 years ago

rugk commented 6 years ago

Maybe you can add generation as an SVG image?

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

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

rugk commented 6 years ago

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

rugk commented 6 years ago

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

nayuki commented 6 years ago

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