diff --git a/src/bin/proxmox_backup_client/key.rs b/src/bin/proxmox_backup_client/key.rs index 2adeb348..8b802b3e 100644 --- a/src/bin/proxmox_backup_client/key.rs +++ b/src/bin/proxmox_backup_client/key.rs @@ -414,13 +414,13 @@ fn paperkey_html(data: &str, subject: Option) -> Result<(), Error> { println!("

"); let data = data.join("\n"); - let qr_code = generate_qr_code("png", data.as_bytes())?; + let qr_code = generate_qr_code("svg", data.as_bytes())?; let qr_code = base64::encode_config(&qr_code, base64::STANDARD_NO_PAD); println!("
"); println!("", qr_code); + println!("src=\"data:image/svg+xml;base64,{}\"/>", qr_code); println!("
"); println!(""); } @@ -447,13 +447,13 @@ fn paperkey_html(data: &str, subject: Option) -> Result<(), Error> { println!("

"); - let qr_code = generate_qr_code("png", key_text.as_bytes())?; + let qr_code = generate_qr_code("svg", key_text.as_bytes())?; let qr_code = base64::encode_config(&qr_code, base64::STANDARD_NO_PAD); println!("
"); println!("", qr_code); + println!("src=\"data:image/svg+xml;base64,{}\"/>", qr_code); println!("
"); println!("");