Use SvgPathImage in QR Code generation to remove white lines. #388

This commit is contained in:
Khanh Ngo 2018-11-12 16:00:38 +07:00
parent add5fd3e52
commit e4c8f5e100

View file

@ -1627,7 +1627,7 @@ def qrcode():
return redirect(url_for('index'))
# render qrcode for FreeTOTP
img = qrc.make(current_user.get_totp_uri(), image_factory=qrc_svg.SvgImage)
img = qrc.make(current_user.get_totp_uri(), image_factory=qrc_svg.SvgPathImage)
stream = BytesIO()
img.save(stream)
return stream.getvalue(), 200, {