Barcode generator service

This service provides easy access to generate and fetch barcodes in image format via HTTP. There is currently no access or volume restrictions enforced, and usage is free (note that if this service becomes heavily "abused", a white-listing mechanism will be put in place, so limit your use to what is needed...).

Request path and format:

http://[hostname]/gensvg?type=code128&fmt=png&msg=Barcode

Supported parameters

Parameter Cardinality Description
type required Type of the barcode. Examples: code128 (for Code 128), ean-13, upc-e etc. The values are the same used for the org.krysalis.barcode4j.BarcodeClassResolver.
fmt defaults to SVG Output format of the barcode. You can use either MIME types (such as "image/svg+xml") or short format types (such as "svg" or "eps"). Supported output formats for this servlet are: SVG, EPS and any supported bitmap format.
msg required The message to encode.
height optional Specifies the desired overall height of the barcode.
mw optional The desired module width (normally the width of the narrow module). Example: 0.21mm
wf optional The desired wide factor. Example: 2 or 2.5
qz optional Determines the quiet zone. Example: 10mw (10 times the module width) or 1.5cm. "disable" suppressed the quiet zone.
hrp optional Determines the placement of the human-readable part. Possible values: "top", "bottom" or "none"
hrsize optional Determines the font size for the human-readable part. Example: 12pt
hrfont optional Determines the font to use for the human-readable part. Example: CourierNew
res defaults to 300dpi (Applies to bitmaps only) Determines the resolution in dpi (dots per inch) for bitmaps.
gray defaults to false (Applies to bitmaps only) Determines whether the bitmap should be created in grayscales instread of monochrome (black and white). Valid values: "true" and "false".