TINE Docs
GitHub
  • Highlights
  • TINE
    • Install
  • GETTING STARTED
    • Quick start
    • Concept
      • Multiple Inlets and Outlets
      • Merge Records
      • Pipeline as Http Handler
    • Log config
  • Embedding TINE in Go
    • Use Recipe
    • Use API
  • Plugins
    • Inlets
    • Flows
    • Outlets
    • Extras
  • RECIPES
    • QRCode Generator
    • OLLAMA
    • OLLAMA Telegram Bot
    • Web Page Snapshot
    • Syslog Receiver
    • SQLite
    • RRD
Powered by GitBook
On this page
Edit on GitHub
  1. RECIPES

QRCode Generator

PreviousExtrasNextOLLAMA

Last updated 8 months ago

This recipe demonstrates how to generate QR Code.

example.toml

[[inlets.args]]
[[flows.qrcode]]
    input_field = "in"
    output_field = "qrcode"
    # QRCode width should be < 256
    width = 11
    # background_transparent = true
    background_color = "#ffffff"
    foreground_color = "#000000"
    # logo image should only has 1/5 width of QRCode at most (.png or .jpeg)
    logo = "./plugins/qrcode/testdata/tine_x64.png"
[[outlets.image]]
    path_field = "out"
    image_fields = ["qrcode"]
    overwrite = true

Run

tine run ./example.toml -- in="https://tine.thingsme.xyz" out=./output.png
QRCode output