Skip to content

wrong qrcode size #64

@patrickelectric

Description

@patrickelectric
let qr = QrCode::new(metadata).unwrap();
dbg!(qr.to_colors().len()); // 441

How it gets to 441 ? If the image is a square, it should be an even number.

I believe this is also affects the images as well:

qr.render::<Luma<u8>>().min_dimensions(200, 200).module_dimensions(0, 0).build();

Creates an image where the total number of pixels does not match dimensions and color type.
E.g: 200x200*3 = 120000, but I'm getting crazy things like 127321

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions