mirror of
https://github.com/chatmail/relay.git
synced 2026-05-19 20:38:05 +00:00
tweak QR code generation
This commit is contained in:
@@ -52,7 +52,7 @@ def gen_qr(maildomain, url):
|
|||||||
height = size + text_height
|
height = size + text_height
|
||||||
|
|
||||||
image = Image.new("RGBA", (width, height), "white")
|
image = Image.new("RGBA", (width, height), "white")
|
||||||
qr_final_size = width
|
qr_final_size = width - (qr_padding * 2)
|
||||||
|
|
||||||
if num_lines:
|
if num_lines:
|
||||||
draw = ImageDraw.Draw(image)
|
draw = ImageDraw.Draw(image)
|
||||||
|
|||||||
Reference in New Issue
Block a user