I'm using the following library to generate QRCodes: https://marcoagner.github.io/Flask-QRcode/
我想给用户选择下载此QR并将其设置为墙纸的选项。问题是,当我生成qrcode时,如果您通过按下图像几秒钟来下载图像,则仅下载QRCode,然后转到“相机胶卷”并将其设置为墙纸时,就像这样:
我的问题是:如何在QRcode周围设置白色边框,以便用户下载图像时可以将其设置为正确的墙纸?
这是我的代码:
<center><img src="{{ qrcode("http://myherokuapp.com" + url_for('view', useraid=useraid),box_size=4 )}}"></center>
先感谢您。