Skip to content

Settings

Every setting the Label Studio — Labels, Barcodes & Data extension contributes, with its type, default and allowed values, generated from package.json contributes.configuration.

Setting Type Default Description
labelStudio.defaultFormat string "auto" Printer language assumed for files that do not declare one (.prn, .lbl). auto sniffs the content. Allowed: "auto", "zpl", "epl".
labelStudio.renderer.density string "8dpmm" Print density used when rendering labels. Matches the target printer's resolution. Allowed: "6dpmm", "8dpmm", "12dpmm", "24dpmm".
labelStudio.label.widthInches number 4 Label width in inches. Range: 0.25 to 15.
labelStudio.label.heightInches number 6 Label height in inches. Range: 0.25 to 30.
labelStudio.preview.autoRefresh boolean true Automatically refresh the preview as the document changes.
labelStudio.preview.autoRefreshDelay number 400 Debounce delay (ms) for preview auto-refresh. Range: 100 to 5000.
labelStudio.preview.initialZoom number 2 Initial display scale for the preview (1 = 1 dot per pixel). Range: 0.25 to 8.
labelStudio.format.uppercaseCommands boolean true Uppercase ZPL commands when formatting. EPL command case is significant and is never changed.
labelStudio.format.oneCommandPerLine boolean true Place each ZPL command on its own line when formatting.
labelStudio.validation.enable boolean true Enable diagnostics for label documents.
labelStudio.validation.barcodeData boolean true Check barcode payloads against the symbology's character set, length and check digit.
labelStudio.validation.bounds boolean true Report fields that fall outside the printable area.
labelStudio.validation.scannability boolean true Report bar widths, bar heights and quiet zones that are likely to fail a scanner.
labelStudio.merge.maxRows number 500 Maximum number of data rows expanded by a single merge. Range: 1 to 100000.
labelStudio.import.threshold number 128 Luminance threshold (0-255) below which an imported image pixel becomes a printed dot. Range: 1 to 254.
labelStudio.import.dither string "none" Dithering applied when converting imported artwork to 1 bit per pixel. Use none for logos and line art. Allowed: "none", "floyd-steinberg".
labelStudio.import.maxWidthDots number 600 Imported images wider than this many dots are scaled down to fit. Range: 8 to 4000.
labelStudio.import.invert boolean false Swap black and white when importing artwork. Use for light logos meant to print on a dark field.
labelStudio.import.trim boolean false Crop blank margins from imported artwork so the graphic starts where the ink does.
labelStudio.import.rotate number 0 Rotate imported artwork clockwise by this many degrees. Allowed: 0, 90, 180, 270.
labelStudio.deploy.confirmBeforeSend boolean true Ask for confirmation before sending a label to a printer. Only your user settings count: a workspace cannot turn this off, and a printer defined by the workspace always asks. Scope: application.
labelStudio.deploy.timeoutMs number 10000 How long to wait for a network printer before giving up. Range: 500 to 120000.
labelStudio.printers array [] Printers labels can be deployed to.

Object settings

labelStudio.printers entries

Field Type Default Description
name (required) string — Display name, e.g. Warehouse ZT411.
transport string "tcp" tcp sends to a network printer, file writes to a device or share, directory drops a spool file. Allowed: "tcp", "file", "directory".
host string — Hostname or IP address (tcp transport).
port number 9100 TCP port; raw printing is 9100 on virtually every printer.
path string — Device path, share or spool directory (file/directory transports).
format string "zpl" Printer language. Labels written in the other language are converted on deploy. Allowed: "zpl", "epl".
dpmm number 8 Print density in dots per millimetre. Allowed: 6, 8, 12, 24.
widthInches number — Stock width in inches.
heightInches number — Stock height in inches.
append boolean false Append to the target file instead of replacing it (file transport).
description string — Free-text note shown in the printers view.

Deprecated settings

Setting Type Default Deprecation
zplViewer.renderer.density string "8dpmm" Renamed to labelStudio.renderer.density.
zplViewer.label.widthInches number 4 Renamed to labelStudio.label.widthInches.
zplViewer.label.heightInches number 6 Renamed to labelStudio.label.heightInches.
zplViewer.preview.autoRefresh boolean true Renamed to labelStudio.preview.autoRefresh.
zplViewer.preview.autoRefreshDelay number 400 Renamed to labelStudio.preview.autoRefreshDelay.
zplViewer.preview.initialZoom number 2 Renamed to labelStudio.preview.initialZoom.
zplViewer.format.uppercaseCommands boolean true Renamed to labelStudio.format.uppercaseCommands.
zplViewer.format.oneCommandPerLine boolean true Renamed to labelStudio.format.oneCommandPerLine.
zplViewer.validation.enable boolean true Renamed to labelStudio.validation.enable.