← 返回命令列表

Linux command

zint 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Generate QR code

zint -b 58 -d "[data]" -o [output.png]

Generate Code 128 barcode

zint -b 20 -d "[data]" -o [output.png]

Generate EAN-13 barcode

zint -b 13 -d "[1234567890123]"

Set output format

zint -b 58 -d "[data]" -o [output.svg]

Scale barcode size

zint -b 58 -d "[data]" --scale [3]

Generate with human-readable text

zint -b 20 -d "[data]" --notext=0

说明

zint is a barcode generator supporting over 50 barcode types. It creates 1D barcodes (Code 128, EAN, UPC), 2D barcodes (QR Code, Data Matrix, PDF417), and specialized formats (postal codes, pharmaceutical). Output formats include PNG, BMP, GIF, PCX, SVG, EPS, and EMF. The tool can also output raw hex dumps for debugging or custom rendering. zint includes both a command-line interface and a GUI (zint-qt). A library (libzint) is available for integration into applications.

参数

-b _type_
Barcode type (number or name)
-d _data_
Data to encode
-o _file_
Output filename
--scale _factor_
Scale factor for output
--height _value_
Barcode height (for 1D barcodes)
--fg _color_
Foreground color (hex)
--bg _color_
Background color (hex)
--notext
Disable human-readable text
-i _file_
Read data from file
--batch
Process batch data from file
--dump
Output hex dump instead of image
-e
Display symbol information

FAQ

What is the zint command used for?

zint is a barcode generator supporting over 50 barcode types. It creates 1D barcodes (Code 128, EAN, UPC), 2D barcodes (QR Code, Data Matrix, PDF417), and specialized formats (postal codes, pharmaceutical). Output formats include PNG, BMP, GIF, PCX, SVG, EPS, and EMF. The tool can also output raw hex dumps for debugging or custom rendering. zint includes both a command-line interface and a GUI (zint-qt). A library (libzint) is available for integration into applications.

How do I run a basic zint example?

Run `zint -b 58 -d "[data]" -o [output.png]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -b _type_ do in zint?

Barcode type (number or name)