qrcode-toolkit icon indicating copy to clipboard operation
qrcode-toolkit copied to clipboard

QArt support

Open brainstone8 opened this issue 2 years ago • 3 comments

Clear and concise description of the problem

Changing manually padding or error code bits and then changing affected other bits automatically, so that for example we can paint a white area in the middle and the qr code is still valid.

Suggested solution

https://github.com/7sDream/pyqart

Alternative

No response

Additional context

No response

Validations

  • [X] Follow our Code of Conduct
  • [X] Read the Contributing Guide.
  • [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

brainstone8 avatar Jul 17 '23 11:07 brainstone8

The function below, changed, from pyqart and referring to the rest of the implementation in pyqart gives back a boolean matrix of the qr code that correspondences to the image example.png. Can this be included in your typescript code? I tried, but it didn't work to call python.

By the way I commented out to put the numbers after the link in the file qart.py on line 64.

from pyqart import QArtist

def qart_QR(url='https://youtu.be/aaaaaaa', img='example.png', version=None, level=3, rotation=0, only_data=False): return(QArtist(url=url, img=img, version=version, level=level, rotation=rotation, only_data=only_data).as_bool_matrix)

brainstone8 avatar Jul 24 '23 09:07 brainstone8

I think you will need to port it complete from Python to JavaScript to get it work

antfu avatar Jul 24 '23 16:07 antfu

hi since the update the texts are not visible in interface,'dark theme) but its ok for normal mode

vallagurd avatar Jul 25 '23 07:07 vallagurd