Images
Img API provides a way to generate images from templates, barcodes, and QR codes.
Get SVG file based on template
| HTTP | |
|---|---|
Note
svgtemplate- template without extension- Templates are stored in
templates/filename.svgfolder app_name-www- for system templates{key}- template keys are replaced with values from query string
Get Barcode from text
Maximum character length is 80 characters. If less than 23 characters
HTML
| HTML | |
|---|---|
| Markdown | |
|---|---|
Barcode API will generate Code128 Barcode ,
Optional query parameters:
code- Valid EAN 128 CODEl- label true/false , default truew- set the width of the barcode, default 300h- set height default 60
Get QRCode from text
Optional query parameters:
- quietzone = false
- pixelspermodule =2
| HTML | |
|---|---|
| Markdown | |
|---|---|
Get QRCode as DXF
Generates a QR code as a DXF vector file (units: mm) for laser engravers and CNC software (LightBurn, RDWorks, LaserGRBL, Inkscape). The file is returned as a download named qrcode.dxf.
| HTTP | |
|---|---|
| HTML | |
|---|---|
Query parameters:
code- text to encode, required, max 1000 charactersmodulesize- size of one QR square in mm,0.1-20, default1ecc- error correction levelL,M,QorH, defaultMlabel- optional text engraved below the code, max 100 characters
Note
- Final width = number of QR modules ×
modulesize, e.g. 21 modules × 1 mm = 21 mm. The quiet zone is not included - leave a blank margin around the code yourself. - Higher
eccsurvives engraving imperfections better, but makes the code denser (more modules). - The QR code is drawn as closed rectangles on layer
QR- set this layer to fill/scan mode in the laser software. - The label is drawn as letter outlines on layer
LABEL, one module below the code - no font is needed in the laser software. Text height is 4 modules, shrunk to the code width if longer; single line only. - Format: DXF R12 (AC1009), compatible with most CAD/CAM tools.
Errors (HTTP 400): missing code, text too long (or too long for a QR code at the selected ecc), modulesize out of range, invalid ecc, label too long.