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

Support for QR codes #59

Open
bblimke opened this issue Mar 12, 2019 · 5 comments
Open

Support for QR codes #59

bblimke opened this issue Mar 12, 2019 · 5 comments

Comments

@bblimke
Copy link

bblimke commented Mar 12, 2019

Hi,

Does esc2html command support QR codes?

@mike42
Copy link
Contributor

mike42 commented Mar 15, 2019

Not currently. The parser knows how to skip past the commands, but we don't use a library to turn them into images for HTML output yet.

We have one test file (qr-code.bin from escpos-php) which uses a 2D data command for QR codes, but shows only blanks.

image

It would be possible to add support for some types of QR code fairly easily.

Do you have any example binary files that contain QR codes which could be used for testing such a feature?

@bblimke
Copy link
Author

bblimke commented Mar 19, 2019

Hi @mike42

I have ended up generating QR codes as images and then adding them as images.

Here is an example of escpos file with QR code:

qr_code.escpos.gz

@gelinger777
Copy link

@bblimke where do you add them? And how you distiguish the QR inside the lines? Could you share some code please?

@bblimke
Copy link
Author

bblimke commented Mar 13, 2021

@gelinger777 QR is not supported and I don't remember how to distinguish them. I ended up producing escpos files with images of QR codes instead of QR codes.

@gelinger777
Copy link

problem is that different manufacturers have different commands which should be sent before the qr code string and after it. If we could achive at least that on epson/metapace and 2 other major manufacturer's qr codes would be detected and replaced with base64 images would be great imho...

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

No branches or pull requests

3 participants