# EAN-8 Size Setting Instruction

## Barcode Size of EAN-8

OnBarcode products enable users to control EAN-8 barcode image size during its generation. And EAN-8 size setting is supported by the following OnBarcode products:

How to generate, print barcode using .NET, Java sdk library control with example project source code free download:

## Structure of EAN-8

• W : the width of EAN-8 barcode image, including quiet zones.
• X : the width of EAN-8 narrowest bar; X min = 1 pixel.
• C : the number of EAN-8 encoded data characters, including the check digit; C =8.
• Q : the width of the quiet zone; Q > = 7X; Q (L) = 7X, Q (R) = 7X.

## Barcode Width of EAN-8

Defined by GS1 specification, EAN-8 barcode width (W, measured in pixel), can be simply computed.
• If EAN-8 barcode has no supplement data, the expression is:

W = ( C * 7 + 11 ) X + 2Q       // C = 8, Q (L) = 7X, Q (R) = 7X.
= ( 8 * 7 + 11 ) X + 7X + 7X
= 67X + 14X
= 81X

W min = 81X       // X = 1
= 81 pixel

• If a Two-digit Add-On is included in EAN-8, the whole barcode image width including the minimum quiet zones is 106X. W min = 106 pixel.
• If a Five-digit Add-On is included in EAN-8, the whole barcode image width including the minimum quiet zones is 133X. W min = 133 pixel.

Note that, the value of each quiet zone is default by 10X [Q (L) = 10X, Q (R) = 10X] in our EAN-8 generators, and then the respective value of W in above calculation should be87X, (107X + 15), (134X + 15).

## Barcode Height of EAN-8

GS1 specification specifies that EAN-8 barcode height, including the human readable text, should be at the nominal size of 21.3 millimeters (0.8 inch). And the human readable text is 2.75 millimeters. In addition, the height of any two-digit or five-digit Add-On Symbol used, including the human readable text, must be within the image height dimensions of the primary barcode.

However, there is no need to worry about how to generate an EAN-8 barcode meeting the above requirements. Our EAN-8 barcode generators will automatically adjust image height according to the specification. And customers can control barcode image height through Top and Bottom Margin settings.

OnBarcode provides details of EAN-8 Barcode Size Setting in C#.