jojodicus / qr2eascii Goto Github PK
View Code? Open in Web Editor NEWGenerate/convert a QR-code in E-ASCII-art
License: MIT License
Generate/convert a QR-code in E-ASCII-art
License: MIT License
Stack trace:
Enter data to encode: asdfasdfasdfsd
Traceback (most recent call last):
File "/home/cip/2021/wa94tiju/convert.py", line 20, in <module>
image = qr.make_image(fill_color=(0, 0, 0), back_color=(255, 255, 255))
File "/usr/lib/python3/dist-packages/qrcode/main.py", line 292, in make_image
im = image_factory(
File "/usr/lib/python3/dist-packages/qrcode/image/base.py", line 13, in __init__
self._img = self.new_image(**kwargs)
File "/usr/lib/python3/dist-packages/qrcode/image/pil.py", line 24, in new_image
if fill_color.lower() != "black" or back_color.lower() != "white":
AttributeError: 'tuple' object has no attribute 'lower'
Please fix!1!!1!11
Hi team!!
We are testing this repo and we are facing issues. It seems it is related to the resizing.
Once we run:
python3 convert.py --invert
We get this error:
Enter data to encode: https://www.test.com
Traceback (most recent call last):
File "/home/iberia/qr2eascii/convert.py", line 66, in <module>
image = image.resize((width // scale, height // scale), Image.Resampling.NEAREST)
File "/usr/lib/python3/dist-packages/PIL/Image.py", line 65, in __getattr__
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
AttributeError: module 'PIL.Image' has no attribute 'Resampling'
Any idea about what I am doing wrong?
Thanks!
the squares in the corners of the qr code are missing a block
this is how it looks:
██ ██ ████ ████ ████████
████████████ ████████ ██████ ██ ██████████ ████████████
██ ██ ████ ██ ██ ██ ██ ██ ████ ██ ██
██ ██ ██████ ██ ████ ████ ██ ██ ██ ██
██ ██ ██████ ██ ██ ██ ██ ██ ██ ██
██ ████ ██████ ██ ██ ██ ██ ██ ████ ██ # here
████████████ ████ ██ ██ ████ ██ ████ ██ ████████████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██████████████████ ████ ██ ████ ██ ████ ████████████████████
██ ██ ████ ████ ████ ██████ ██ ████████████
████ ████████ ████ ████ ██ ██████ ██ ██████ ██ ██
████ ████ ██ ████████ ████ ████
██ ████ ██ ██████████████ ██ ██ ████████ ██ ██ ████ ████
████████ ██ ████ ██████ ████████ ██ ████████
████████ ██ ████ ██████ ████████ ██ ████████
██ ████████ ██ ██ ████ ██ ████ ██ ██ ████████████
██ ████████ ████████████████ ██████████████ ██ ████████
██ ██████████ ██ ████ ██ ██ ██████████████ ██
████ ██████ ██████ ████ ██████ ██████████ ██
██ ████████ ██ ████████ ██ ██ ████ ██ ████
██ ████████ ████ ██ ██ ██████████
██ ██ ████████ ██ ██ ██ ██ ██ ██ ████████████████
████ ████████ ████ ██ ██ ██ ████████ ████ ████████████
████ ████████ ████ ██ ██ ██ ████████ ████ ██████████
██████ ██████ ████ ██ ████ ██████ ██████ ██ ██
██ ██ ██ ██████ ██ ██ ████ ██ ██ ██ ████
██ ██ ██████ ██ ██ ████████████ ██ ██████ ████
██ ██ ██████ ██ ██ ██████ ████ ██
██████████████████ ██ ████ ████████████████ ██████ ██
████████ ██ ██ ██ ██ ██ ██ ██████
████████████ ████████ ████████ ████ ████ ██████ ████
██ ████ ██ ████████████ ████ ██ ████ ████ ██ # here
██ ██ ██ ████████████ ████ ██ ████ ████ ██
██ ██ ██ ██ ██ ████████████████████
██ ██ ████ ████████ ██ ██ ██ ██ ████
████████████ ██ ██ ██ ██ ██ ██████ ████████████
██ ████ ██ ██ ██ ██████
this is how it should be:
██ ██ ████ ████ ████████
████████████ ████████ ██████ ██ ██████████ ████████████
██ ██ ████ ██ ██ ██ ██ ██ ████ ██ ██
██ ██ ██████ ██ ████ ████ ██ ██ ██ ██
██ ██ ██████ ██ ██ ██ ██ ██ ██ ██
██ ██ ██████ ██ ██ ██ ██ ██ ██ ██ # here
████████████ ████ ██ ██ ████ ██ ████ ██ ████████████
██ ██ ██ ██ ██ ██ ██ ██ ██ ██
██████████████████ ████ ██ ████ ██ ████ ████████████████████
██ ██ ████ ████ ████ ██████ ██ ████████████
████ ████████ ████ ████ ██ ██████ ██ ██████ ██ ██
████ ████ ██ ████████ ████ ████
██ ████ ██ ██████████████ ██ ██ ████████ ██ ██ ████ ████
████████ ██ ████ ██████ ████████ ██ ████████
████████ ██ ████ ██████ ████████ ██ ████████
██ ████████ ██ ██ ████ ██ ████ ██ ██ ████████████
██ ████████ ████████████████ ██████████████ ██ ████████
██ ██████████ ██ ████ ██ ██ ██████████████ ██
████ ██████ ██████ ████ ██████ ██████████ ██
██ ████████ ██ ████████ ██ ██ ████ ██ ████
██ ████████ ████ ██ ██ ██████████
██ ██ ████████ ██ ██ ██ ██ ██ ██ ████████████████
████ ████████ ████ ██ ██ ██ ████████ ████ ████████████
████ ████████ ████ ██ ██ ██ ████████ ████ ██████████
██████ ██████ ████ ██ ████ ██████ ██████ ██ ██
██ ██ ██ ██████ ██ ██ ████ ██ ██ ██ ████
██ ██ ██████ ██ ██ ████████████ ██ ██████ ████
██ ██ ██████ ██ ██ ██████ ████ ██
██████████████████ ██ ████ ████████████████ ██████ ██
████████ ██ ██ ██ ██ ██ ██ ██████
████████████ ████████ ████████ ████ ████ ██████ ████
██ ██ ██ ████████████ ████ ██ ████ ████ ██ # here
██ ██ ██ ████████████ ████ ██ ████ ████ ██
██ ██ ██ ██ ██ ████████████████████
██ ██ ████ ████████ ██ ██ ██ ██ ████
████████████ ██ ██ ██ ██ ██ ██████ ████████████
██ ████ ██ ██ ██ ██████
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.