barHeight
The bars are shorter than the symbol's size needs.
| Levels | fail; check for a GS1 DataBar that is one of the short forms |
| Applies to | EAN/UPC, ITF-14, GS1-128, GS1 DataBar Omnidirectional, Expanded and Limited |
| Needs a print size | yes |
What it means
Each linear barcode has a minimum bar height. For EAN and UPC it grows with the symbol: 22.85 mm at the 0.330 mm target, 18.28 mm at 0.264 mm. The bars in the artwork are shorter than that, usually because the symbol was cropped ("truncated") to save space.
Why scanners care
EAN/UPC was designed for omnidirectional till scanners, which is why its height is tied to its width (General Specifications §5.12.2.2). A scan line that crosses the symbol at an angle must still cross every bar; with short bars it only does when the pack is held square to the scanner. GS1 DataBar Omnidirectional is 33X tall as a symbology, but at retail POS GS1 requires the over-square 46X "following the example of the EAN/UPC symbology specification and rigorous field test" (Table 5-44 note ****).
How to fix it
- Restore the full height. If the symbol was scaled, scale it in proportion.
- If the space is too small, make the whole symbol smaller (down to 0.264 mm X for EAN/UPC) instead of cutting the bars.
- On a very small pack, EAN-8 or UPC-E is the symbol GS1 made for the job.
Thresholds
Measured on the data bars. The longer guard bars of an EAN/UPC and the bearer bars of an ITF-14 are left out. A height counts as short under 95% of the requirement (src/rules/check.ts).
| Symbology | Minimum bar height | Source | In the code |
|---|---|---|---|
| EAN-13, UPC-A, UPC-E | 22.85 mm at 0.330 mm, in proportion to X | Table 5-44 | SPECS in src/rules/symbols.ts |
| EAN-8 | 18.23 mm at 0.330 mm, in proportion to X | Table 5-44 | SPECS.ean8 |
| ITF-14, GS1-128 | 31.75 mm at any size | Table 5-47 note ** | SPECS.itf14, SPECS.gs1_128 |
| GS1 DataBar Omnidirectional | 46X (15.19 mm at 0.330 mm) | Table 5-44 and note **** | SPECS.databar |
| GS1 DataBar Expanded | 34X (11.23 mm at 0.330 mm) | §5.5.2.3.1; Table 5-44 | SPECS.databar_expanded |
| GS1 DataBar Limited | 10X | §5.5.2.2 | SPECS.databar_limited |
A GS1 DataBar under 33X is taken for the Truncated (13X, §5.5.2.1.2) or Stacked (§5.5.2.1.3) form and reported as a check: tills' omnidirectional scanners don't read those. Between 7X and 13X a single-row symbol is a fail: shorter than the 13X Truncated form. From 33X to 46X an Omnidirectional is a fail, with the 46X figure.
Limits
- Stacked symbols (Stacked, Stacked Omnidirectional, Expanded Stacked) are measured on one row. Their total height (Table 5-44: 95X for Stacked Omnidirectional) isn't judged; a stacked DataBar whose rows are under 33X is reported as the short Stacked form.
- GS1 lets ITF-14 and GS1-128 go down to 12.70 mm on items too small for 31.75 mm (Table 5-47 note **). That exception can't be selected, so such a symbol fails here.
Spec
GS1 General Specifications, Release 26.0, §5.2.3.2, §5.5.2, Tables 5-44 and 5-47. Full table: spec map, barHeight.