GithubHelp home page GithubHelp logo

Comments (5)

metafloor avatar metafloor commented on May 29, 2024 2

Found the bug in the translation of BWIPP's context logic - which creates static-initialized state for each encoder. That is why it worked the first time, and then didn't on subsequent renders.

The fix is available in either 3.3.1 or 3.3.2 depending on source being either github or npmjs. (My deployment stack is having issues with npmjs right now - but I have verified that 3.3.1 is available on that platform.)

from bwip-js.

metafloor avatar metafloor commented on May 29, 2024 1

I was not able to reproduce your results using the current versions of bwip-js and the BWIPP online generator. My tests show the same image generated by both. Additionally, the Android zxing scanner and a Symbol camera-based hand scanner both recognize the barcodes and return the expected result.

The test framework for bwip-js compares against a known good image generated by BWIPP and ghostscript, and there have been no changes detected. Since you supplied the example text used by BWIPP (which is also a test case for bwip-js), I don't think there have been any changes in rendering between versions.

I am on holiday starting today and will be back on April 3. We can take up this discussion then.

from bwip-js.

Mertsch avatar Mertsch commented on May 29, 2024 1

@metafloor Enjoy your holiday, this is low prio!
I was really confused when you said you are not getting the same result with (01)03453120000011(8200)http://www.abc.net(10)ABCD1234(410)9501101020917 and https://bwip-js.metafloor.com/demo/demo.html ...
Now here comes the crazy part. I am getting the correct result, too but only once. I refresh the page, enter (01)03453120000011(8200)http://www.abc.net(10)ABCD1234(410)9501101020917 hit enter, get the correct one, hit enter again and consistently get the same different one.

from bwip-js.

metafloor avatar metafloor commented on May 29, 2024

Are you planning to provide an example that shows the error? That is the usual way to report an issue....

from bwip-js.

Mertsch avatar Mertsch commented on May 29, 2024

I am sorry, I thought mentioning the type of code is enough. So
Code: GS1 QR Code
Data: (01)03453120000011(8200)http://www.abc.net(10)ABCD1234(410)9501101020917

https://bwip-js.metafloor.com/demo/demo.html (I assume 3.3.0) generates
bwipjs-api metafloor

While https://the-burtons.xyz/barcode-generator/ and 3.0.5, 3.1.0, 3.2.0 generate
Correct

Trying to scan either with an iPhone results in abc.net for 3.2.0 and nothing for 3.2.1+

from bwip-js.

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.