This is a web service to generate label images and then print them to a label printer via CUPS.
10K+
This web service generates label images and then sends them to a printer exposed by CUPS. This is based on the Brother_QL_Web application with the same purpose but exclusively for Brother printers. The original Label_Web tried to maintain support for both brother and CUPS printers, but Label_Web_2 is exclusively for CUPS printers. This allows for generating labels for any printer that can be controlled by a CUPS server. Printer configuration is provided by a config.json file placed in the Label_Config folder. The main web service allows for quickly making labels with text and basic formatting. Just like Brother_QL_Web.
The web service also allows for more complex labels using label template files added to the Label_Config folder. See Template Elements Documentation for additional details.
Example Config File:
{
"SERVER": {
"HOST": "",
"LOGLEVEL": "WARNING",
"ADDITIONAL_FONT_FOLDER": false
},
"PRINTER": {
"SERVER": "192.168.1.176",
"PRINTER": "Zebra-LP2844",
"LABEL_SIZES": {
"3x1": "3\" by 1\"",
"1x3": "1\" x 3\""
},
"LABEL_PRINTABLE_AREA": {
"3x1": [609, 203],
"1x3": [203, 609]
}
},
"LABEL": {
"DEFAULT_SIZE": "3x1",
"DEFAULT_ORIENTATION": "standard",
"DEFAULT_FONT_SIZE": 70,
"DEFAULT_FONTS": [
{"family": "Minion Pro", "style": "Semibold"},
{"family": "Linux Libertine", "style": "Regular"},
{"family": "DejaVu Serif", "style": "Book"}
]
},
"WEBSITE": {
"HTML_TITLE": "Label Designer",
"PAGE_TITLE": "Web Label Designer",
"PAGE_HEADLINE": "Design your label and print it…"
}
}
Docker Compose Example:
services:
label_web:
image: cvergaray/label_web_2:0.3
container_name: label_web
ports:
- 8013:8013
volumes:
- /path/to/local/Label_Config:/appconfig
- /path/to/local/label_plugins:/app/elements/Custom
restart: unless-stopped
Content type
Image
Digest
sha256:364d6f2be…
Size
196.6 MB
Last updated
3 months ago
docker pull cvergaray/label_web_2