我使用以下库生成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>提前谢谢你。
发布于 2020-05-17 18:49:13
我刚刚意识到这个库有一个边框选项,这正是我正在寻找的,所以我做了:
<center><img src="{{ qrcode("http://myherokuapp.com" + url_for('view', useraid=useraid),box_size=4, border=50 )}}"></center>https://stackoverflow.com/questions/61856619
复制相似问题