Bar width reduction
What the grader does about bar width reduction (BWR), and what it doesn't.
| Question | Answer |
|---|---|
| Does it measure the bar width adjustment drawn into the artwork? | Yes, for EAN-13, EAN-8, UPC-A, UPC-E, Code 128 and GS1-128, when the file has a print size and the code isn't reversed |
| Does it measure it for ITF-14, GS1 DataBar, Code 39 or 2D codes? | No |
| Does it judge the figure? | No. It states what is drawn. No issue is raised, whatever the figure and whatever print process is named |
What does --process do? | Nothing to the verdict. The process is repeated in the summary as a label |
| Does it predict the printed bar widths or the printed grade? | No. There is no print-gain model. The grade is the artwork's |
| Is the measured figure a field in the report? | No. It appears only in the summary sentence |
Why it isn't judged
GS1 General Specifications, Release 26.0, §5.12.4.2.1: a printability test is run on the press and substrate, the bar gain (or loss) is measured, and the bar width adjustment (BWA) is decided from it: bar width reduction where bars gain, the less common bar width increase where they lose. "The required BWA is associated with the X-dimension used." GS1 gives no figure per print process.
Earlier versions of this package compared the measured reduction with a "typical" range per process (flexo 0.025–0.100 mm, offset 0.010–0.030 mm, gravure 0.010–0.040 mm, digital 0–0.020 mm). The sources named for those ranges were a paid document (FTA FIRST) whose figure couldn't be checked, unnamed GS1 member organisation guides, and nothing at all for digital. With no citable public source, the per-process judgement and the print issue it raised were removed.
What is measured
barWidthReduction in src/rules/grade.ts.
- Five scan lines across the bars, at 30% to 70% of the bar height.
- Each bar's width is taken as the ink it holds: darkness summed from the middle of the space before it to the middle of the space after it. Anti-aliased edges in a render don't bias that sum.
- Each bar is rounded to a whole number of modules. The reduction is that many modules minus the measured width.
- The result is the median over all bars on all lines, in pixels, then divided by pixels per millimetre (
src/rules/quality.ts). Fewer than ten bars measured gives no result. - A positive figure means bars narrower than whole modules (reduction). A negative one means bars drawn wider (increase).
Only symbologies whose bars are whole modules are measured. GS1 draws EAN/UPC digits 1, 2, 7 and 8 with bars 1/13 module off whole (§5.2.3.1). The code doesn't treat those bars specially; it relies on the median over all bars.
test/grade.test.ts checks the measurement on an EAN-13 drawn at 10 pixels a module, plain and with a known reduction; test/print.test.ts the statement.
What is reported
bwrNote in src/rules/print.ts, turned into sentences in src/rules/quality.ts.
| Measured | What the summary says |
|---|---|
| within 0.008 mm of whole modules, no process named | nothing |
| within 0.008 mm of whole modules, a process named | "Bars are drawn at nominal width: no bar width adjustment." |
| narrower by more than 0.008 mm | "Bars are drawn 0.040 mm narrower than nominal (bar width reduction)." |
| wider by more than 0.008 mm | "Bars are drawn 0.020 mm wider than nominal." |
| any, with a process named | also "Print process given: flexo. The adjustment a press needs comes from the printer's press test." |
The 0.008 mm line (BWR_NONE_MM) is this package's own measuring tolerance: the render measures to about 0.005 mm. The figure is rounded to 0.001 mm.
What it does not do
- No print-gain model. The predicted grade is computed on the artwork as drawn. Naming a process doesn't change it.
- No check that the adjustment suits the press, the substrate or the size. Only the printer's press test can say that.
- No check of direction. Printing with the bars along or across the web isn't read from the file.
- No ITF-14, DataBar or 2D. GS1 notes that ITF-14, as a two-width symbology, is more exposed to bar gain than the others (§5.12.5.10.5). It is not measured here.
- Nothing without a print size, and nothing for a reversed code or a photo.
What to do with it
- Ask the printer for the bar width adjustment for the press, plate and substrate. It comes from their press characterisation.
- Set that figure in the barcode software and generate the symbol at its final size.
- Run the grader to confirm the adjustment in the file is the one you set. It can't tell you the figure is the right one.
- Have the printed proof verified. GS1 says the barcode should be verified as part of approving a proof (§5.12.4.2.1).