Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tiam-bloom opened this issue Jul 17, 2024 · 0 comments
Open

Comments

@tiam-bloom
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant