Skip to content

size ​

The symbol is smaller or larger than GS1 allows for where it is scanned.

Levelfail (outside the range)
Applies toEAN/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 sizeyes. 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 ​

SymbologyX-dimension allowedSourceIn the code
EAN-13, EAN-8, UPC-A, UPC-E0.264–0.660 mm (80–200%); target 0.330 mmTable 5-44EAN_X in src/rules/symbols.ts
GS1 DataBar Omnidirectional, Stacked Omnidirectional, Expanded, Expanded Stacked0.264–0.660 mmTable 5-44SPECS.databar, SPECS.databar_expanded
ITF-14, GS1-1280.495–1.016 mmTable 5-47DIST_X
GS1 DataMatrix; Data Matrix or QR Code carrying a GS1 Digital Link0.396–0.990 mmTable 5-46POS_2D_X
GS1 QR Code (FNC1), and GS1 DataMatrix carrying AI (8200)0.396–0.743 mmTable 5-45POS_2D_8200_X
Everything elsereported, 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.

MIT licensed. It predicts from the artwork; it is not a verifier.