Skip to content

How to render QR codes directly to the console and control size ? #367

@tiam-bloom

Description

@tiam-bloom

I'm try this codes

        qr = qrcode.QRCode(
            box_size=1,
            border=1,
        )
        qr.add_data(base64_image_string)
        f = io.StringIO()
        qr.print_ascii(out=f)
        f.seek(0)
        ascii_qr = f.read()
        print(ascii_qr)

But It's so big, box_size=1, like unuseful

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions