CODE128 barcode displays incorrectly
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 5.9k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description

As you can see from the image, the top/black barcode is one generated using JsBarcode. The bottom/red one is what I'm actually trying to generate. They are both CODE128, but it seems that the CODE128 Auto setting slightly misrepresents a small portion of the barcode (indicated by the green arrows). The project BWIP-JS generates it as expected, but I'd prefer to use JsBarcode instead, as I've been using it for a little over a year now. What would I need to do to solve the minor discrepancy in the generated barcode?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file, test, or input value is named; start by reproducing the CODE128 Auto output shown in the issue and comparing it with the expected barcode and the BWIP-JS result. Done means the affected CODE128 output matches the expected reference without introducing regressions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100