size
The symbol is smaller or larger than GS1 allows for where it is scanned.
| Level | fail (outside the range) |
| Applies to | EAN/UPC, ITF-14, GS1-128, GS1 DataBar except Limited, GS1 DataMatrix, GS1 QR Code, QR or Data Matrix carrying a GS1 Digital Link |
| Needs a print size | yes. A PDF or SVG has one; a PNG or JPEG needs a resolution in the file, --dpi or --width |
What it means
A barcode's size is set by the width of its narrowest bar or module, the X-dimension. The symbol in the artwork is outside the range GS1 gives for its use. For EAN and UPC the size is also given as a percentage of the 0.330 mm target ("magnification", an EAN/UPC term: General Specifications §5.12.2.2). Every other symbology is given in millimetres only, as GS1's tables give it.
Why scanners care
GS1 sets the smallest and largest X-dimension from the scanner's operating range, its field of view, for each place a code is scanned (§5.12.2.1). Outside that range the scanner there isn't built to read it.
How to fix it
- Scale the whole symbol, digits included, to a size inside the range. Don't stretch only its width.
- Bar height scales with it: see barHeight.
Thresholds
| Symbology | X-dimension allowed | Source | In the code |
|---|---|---|---|
| EAN-13, EAN-8, UPC-A, UPC-E | 0.264–0.660 mm (80–200%); target 0.330 mm | Table 5-44 | EAN_X in src/rules/symbols.ts |
| GS1 DataBar Omnidirectional, Stacked Omnidirectional, Expanded, Expanded Stacked | 0.264–0.660 mm | Table 5-44 | SPECS.databar, SPECS.databar_expanded |
| ITF-14, GS1-128 | 0.495–1.016 mm | Table 5-47 | DIST_X |
| GS1 DataMatrix; Data Matrix or QR Code carrying a GS1 Digital Link | 0.396–0.990 mm | Table 5-46 | POS_2D_X |
| GS1 QR Code (FNC1), and GS1 DataMatrix carrying AI (8200) | 0.396–0.743 mm | Table 5-45 | POS_2D_8200_X |
| Everything else | reported, not judged |
A size counts as outside when it is more than 0.005 mm past a limit (src/rules/check.ts).
An EAN/UPC inside the range but under 90% of the target gets a sentence of advice in the summary ("ask your printer for the smallest size their press holds"). It is not an issue and doesn't change the verdict: GS1 says to consult the printer on the minimum size (§5.12.2.4), but the 90% line is this package's own.
Limits
- One GS1 table per symbology is built in: retail POS for EAN/UPC, DataBar and 2D; general distribution for ITF-14 and GS1-128. A case code scanned only in a warehouse, a healthcare pack or an on-demand label has other limits that can't be selected.
- The allowance for X down to 0.249 mm on on-demand printers (Table 5-44 note *) and the 0.375 mm allowance for 2D on variable measure fresh food (note under Table 5-46) can't be selected.
Spec
GS1 General Specifications, Release 26.0, §5.12.2.2, §5.12.3.1 (Tables 5-44, 5-45, 5-46) and §5.12.3.2 (Table 5-47). Full table: spec map, size.