Comments (5)
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.
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.
@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.
Are you planning to provide an example that shows the error? That is the usual way to report an issue....
from bwip-js.
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
While https://the-burtons.xyz/barcode-generator/ and 3.0.5
, 3.1.0
, 3.2.0
generate
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)
- [React] Cannot find "toCanvas" HOT 5
- Maintain a Proper Changelog
- Lack of `default` condition in the exports map HOT 18
- Escaping "(" and ")" using ^040 and & ^41 in gs1 datamatrix encoder ends up with AI syntax error HOT 22
- parsefnc with iso-8859-15 seems not to work for pdf417 HOT 11
- SVG related functions are not represented in the .d.ts files HOT 4
- In React APP toBuffer import issue HOT 1
- when i use this to create an dataMatrix code, how can i set my code correct level, i set by this, but looks not useful HOT 2
- Compatibility with IE11 HOT 6
- Property 'toCanvas' does not exist on type 'typeof BwipJs'. HOT 4
- QrCode to zpl HOT 5
- Property 'toCanvas' does not exist on type 'typeof BwipJs' HOT 18
- nodejs 20.10.0 generate a different barcode compare when I use nodejs 20.9.0 HOT 3
- Datamatrix generation fo binary data after 3.4.0 has extra bytes HOT 3
- 4.2.0 will not generate the same barcode as 3.0.1 HOT 3
- please tag when doing a npm publish HOT 1
- Uncaught ReferenceError: BwipJs is not defined - Runtime error HOT 2
- New option showbearer via BWIP 2023-07-2 HOT 4
- backgroundcolor with # doesn't work or throw an error HOT 1
- extra `1px` @ bottom and/or left within `code128` [toSVG] HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bwip-js.