erwanvivien / fast_qr

Ultra fast QRCode generation
https://fast-qr.com/
MIT License
208 stars 30 forks source link

QR generated with V40 ImageBuilder with Pixmap generates Garbled PNG image #23

Closed andres-hurtado-lopez closed 1 year ago

andres-hurtado-lopez commented 1 year ago

High. I was trying to generate a QR as a PNG to I could integrate it into a an tag on a webassembly module I' building but every single time in generates a garbled image. I don't know what step I'm missing to do over the produced [u8] so align the data of if it is in reality an issue with a dependency.

The shortest example I can provide is:

Cargo.toml

[package]
name = "foo"
version = "0.1.0"
authors = ["Rust Example <rust-snippet@example.com>"]

[dependencies]
fast_qr = { version = "0.8.4", features = ["image"] }
base64 = "0.21.0"

main.rs

use fast_qr::{
    convert::{image::ImageBuilder, Builder},
    QRBuilder, Version, ECL,
};

fn main() {

    let qrcode = match QRBuilder::new("datos de prueba para salir".to_string().as_bytes())
        .ecl(ECL::H)
        .version(Version::V40)
        .build() {
        Ok(qr) => qr,
        Err(why) => {
        panic!("Failed generating Qr Code: {why:?}");
        }
    };

    let pixmap = ImageBuilder::default()
        .background_color([255, 255, 255, 0]) // transparency
        .to_pixmap(&qrcode);

    let Ok(url_encoded_data)  = pixmap.encode_png().map(|x| base64::encode(&x[..]) ) else {
    panic!("could not base64 encode generated QR from string '");
    };

    let src = format!("data:image/png;base64,{url_encoded_data}");

    println!("{src}");

}

The print at the end produces the URL encoded data that is supposed to be used on the tag

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALkAAAC5CAYAAAB0rZ5cAAAelUlEQVR4Ae3diXbjOq4FUPb/f/RtbcpHgRg58SBXJnoFOgNAkIJUrqFf9/tfm585gV8+gfmS//IHPG+vtfmSt/n57ROYL/lvf8Lz/g6/yf/7YC75RfFRzQfLZ2pO4KkJ5P3T5KN3sNZdfcl3RTouoWn1p267+T0xj+Yz17eb5pk5BdvweefXlza1KYLx1NEVk5t47gQy59qVR1+b/1/Km4Nwz5kHLaIh3WMnutPaZ4vlL6X9V97UmUY7ZR5t+dSZLnL7yfP6i3n3nvsOD2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kS+vVA3+LKYXFGf0vOVM9hL2g7esUXtvXXpDca3HmKPrXnRdSx/l40Nxy5r0UR8O6VvXqxXqofUj58nxcUiHQ5qPQzq8Il+oqX60XA/JTsolRTC2OhrycEiHn6H1GOMn7jGeebwneqyh+TXG2dYcfpSvnhpRe9d89dWJe/O13nox9q01Y0598vhneTVjHK3Zao6SNuTDFEbDePL0xLb7F5c5j9fMo10+mS8ZPqLcFl7STVxIXXCx3j3E+BPnBL5qAt7dvKv1DO88hbUAf1fEXCI+XOS7F18vuYlv/xXCR+dhvnUtXedKz7wprGE2K3ubfXR/UTdxIYZ3oe9AM3n4LjmNUydgzml4NO+/nHfvRzPJvHZ4c+Fu1RRzAj9oAvMlv/dhzfofN4H5kv+4RzYPfO8E5kt+78Rm/Y+bwP8Bizi0fHU3YDcAAAAASUVORK5CYII=

The image can be downloaded from here : https://ibb.co/Y3n4q5T

I'll appreciate any guidance on the topic

erwanvivien commented 1 year ago

Hello @andres-hurtado-lopez what is not working ? The image is too small you mean ?

https://github.com/erwanvivien/fast_qr/blob/master/src/convert/image.rs#L121

Here you can find how to size it 👍 A V40 QRCode won't be really readable if you don't increase it's size and with (default is like 177+8 pixels wide)

Tell me if using it fixes your issue ?

andres-hurtado-lopez commented 1 year ago

My bad. You are completly right. I assigned the size and removed the version and now the QA is generating correctly.

Thank you so much for you all !!!