From e4c8f5e1000fa4272a5eb33b80f4d8037ef8d78e Mon Sep 17 00:00:00 2001 From: Khanh Ngo Date: Mon, 12 Nov 2018 16:00:38 +0700 Subject: [PATCH] Use SvgPathImage in QR Code generation to remove white lines. #388 --- app/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views.py b/app/views.py index 0d73c9e..56fe5c6 100644 --- a/app/views.py +++ b/app/views.py @@ -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, {