Closed 1dot75cm closed 7 years ago
I think, it's very useful. It have following new features:
icon_img
http
https
ftp
factor
box
fill_color
back_color
For example:
<img src="{{ qrcode(request.url, fill_color="#aaa", back_color="white") }}"> <img src="{{ qrcode(url_for('.post', id=post.id, _external=True), border=1, factor=5, icon_img="https://example.org/fedora.png", box=(50, 100)) }}">
The icon_img will be find image in static directory. The factory will adjust the image size to one-fifth of QRCode. The box will be set left: 50px and top: 100px for small icon.
static
factory
left: 50px
top: 100px
Please visit blog to check QR Code image. @marcoagner
https://repo.fdzh.org/blog/api/v1.0/qrcode?url=https://www.google.com&version=10&correct=H&box_size=4&border=2&bcolor=ccc&fcolor=blue&icon=https://avatars0.githubusercontent.com/u/8544397&box=30,65
Hi, @marcoagner Please review this pull request. Thanks.
Thank you, @1dot75cm! Just reviewed it and loved the new features. :+1: Updating pip right away. Check 26d2e732ed551252a3a51ed3fadb1625f215aea9 ;)
I think, it's very useful. It have following new features:
icon_img
(supporthttp
,https
,ftp
protocol)factor
andbox
fill_color
andback_color
For example:
The
icon_img
will be find image instatic
directory. Thefactory
will adjust the image size to one-fifth of QRCode. Thebox
will be setleft: 50px
andtop: 100px
for small icon.Please visit blog to check QR Code image. @marcoagner
https://repo.fdzh.org/blog/api/v1.0/qrcode?url=https://www.google.com&version=10&correct=H&box_size=4&border=2&bcolor=ccc&fcolor=blue&icon=https://avatars0.githubusercontent.com/u/8544397&box=30,65