我正在使用以下库来生成QRCodes。https:/marcoagner.github.ioFlask-QRcode。
我想让用户可以选择下载这个QR并将其设置为壁纸。问题是,当我生成qrcode时,如果你通过按压图片几秒钟下载图片,你只下载了qrcode,而当你进入你的 "相机卷 "并将其设置为壁纸时,它是这样的。
我的问题是,我怎样才能在QR码周围设置白色边框,这样当用户下载图像时,他就可以将其设置为正确的壁纸?
这是我的代码。
<center><img src="{{ qrcode("http://myherokuapp.com" + url_for('view', useraid=useraid),box_size=4 )}}"></center>
先谢谢你
我才发现这个库有一个边框选项,这正是我想要的,所以我做了。
<center><img src="{{ qrcode("http://myherokuapp.com" + url_for('view', useraid=useraid),box_size=4, border=50 )}}"></center>