Git Product home page Git Product logo

Comments (5)

mike42 avatar mike42 commented on September 20, 2024

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?

from escpos-tools.

bblimke avatar bblimke commented on September 20, 2024

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

from escpos-tools.

gelinger777 avatar gelinger777 commented on September 20, 2024

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

from escpos-tools.

bblimke avatar bblimke commented on September 20, 2024

@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.

from escpos-tools.

gelinger777 avatar gelinger777 commented on September 20, 2024

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...

from escpos-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.