explorer icon indicating copy to clipboard operation
explorer copied to clipboard

add logo and color to qr code

Open bergauz opened this issue 6 years ago • 4 comments

gochain_qr

The address specific path like /api/qr?text=asdf&logo=true @jmank88

bergauz avatar Apr 17 '19 13:04 bergauz

Would we be able to generate something this high quality on our own? Maybe with SVG? I've used https://github.com/ajstarks/svgo before.

jmank88 avatar Apr 17 '19 14:04 jmank88

@jmank88 yeah, we can do it with that library

bergauz avatar Apr 17 '19 15:04 bergauz

Maybe we could build this feature in to https://github.com/gochain-io/web3, and then explorer could call it as a library.

qr := web3.QR(text, options)
qr.SVG()
qr.PNG()
qr.Text()
> web3 qr -logo -png qr.png -svg qr.svg
...
> web3 qr
<text QR code>

(https://github.com/mdp/qrterminal)

jmank88 avatar Apr 17 '19 15:04 jmank88

@jmank88 yeah, first we need base than we can integrate it to web3, i'll play around with https://github.com/gographics/imagick and that library

bergauz avatar Apr 17 '19 15:04 bergauz