oudon / rmqrcode-python Goto Github PK
View Code? Open in Web Editor NEWRectangular Micro QR Code (rMQR Code) Generator in Python
Home Page: https://pypi.org/project/rmqrcode/
License: Other
Rectangular Micro QR Code (rMQR Code) Generator in Python
Home Page: https://pypi.org/project/rmqrcode/
License: Other
No error raised.
Raise DataToLongError
Bug in the SegmentOptimizer
.
A cost computed by SegmentOptimizer is too small in Byte Mode. This bug causes invalid segmentation.
>>> qr._optimized_segments("点茗")
[{'data': '点茗', 'encoder_class': <class 'rmqrcode.encoder.byte_encoder.ByteEncoder'>}
>>> qr._optimized_segments("点茗")
[{'data': '点茗', 'encoder_class': <class 'rmqrcode.encoder.byte_encoder.KanjiEncoder'>}
Please allow embedding for binary data 🙏
Currently, rMQR online generator (https://rmqr.oudon.xyz/) only has Japanese version, but I think it is good to support other languages (at least English version) if you want non-Japanese people to use it.
Make the rMQR class have the quiet zone.
The rMQR code is surrounded by 2X light modules called quiet zone. This is defined in the ISO/IEC 23941 6.3.10 Quiet zone. However, currently implementation of the rMQR class has no quiet zone. When we generate an image file, QRImage class adds the quiet zone. If clients use the rMQR class directly, they should add the quiet zone in client-side.
Make the rMQR class have the quiet zone.
C:\Users\SYM\Pictures>rmqr 'github.com/PixelSymbols' 'github profile.png'
usage: rmqr [-h] [--ecc {M,H}] [--version VERSION] [--fit-strategy {min_width,min_height,balanced}] DATA OUTPUT
rmqr: error: unrecognized arguments: profile.png'
C:\Users\SYM\Pictures>rmqr 'github.com/PixelSymbols' 'github_profile.png'
Traceback (most recent call last):
File "C:\Users\SYM\AppData\Local\Programs\Python\Python312\Lib\site-packages\PIL\Image.py", line 2415, in save
format = EXTENSION[ext]
~~~~~~~~~^^^^^
KeyError: ".png'"
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\SYM\AppData\Local\Programs\Python\Python312\Scripts\rmqr.exe\__main__.py", line 7, in <module>
File "C:\Users\SYM\AppData\Local\Programs\Python\Python312\Lib\site-packages\rmqrcode\console.py", line 61, in main
_save_image(qr, args.OUTPUT)
File "C:\Users\SYM\AppData\Local\Programs\Python\Python312\Lib\site-packages\rmqrcode\console.py", line 36, in _save_image
image.save(output)
File "C:\Users\SYM\AppData\Local\Programs\Python\Python312\Lib\site-packages\rmqrcode\qr_image.py", line 24, in save
self._img.save(name)
File "C:\Users\SYM\AppData\Local\Programs\Python\Python312\Lib\site-packages\PIL\Image.py", line 2418, in save
raise ValueError(msg) from e
ValueError: unknown file extension: .png'
The codes that generated this library with version R7x77, R7x139, R9x59, R9x99, R11x43, R11x77, R11x139, R13x27, R15x99, R15x139 are could not be recognized with QRQR.
$ rmqr nasubi out.png --version R7x77
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.