> For the complete documentation index, see [llms.txt](https://tine.thingsme.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tine.thingsme.xyz/recipes/qrcode_gen.md).

# QRCode Generator

This recipe demonstrates how to generate QR Code.

<figure><img src="https://2482568086-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrX74soo3dvrOvMULBO8X%2Fuploads%2Fgit-blob-3009bf854d43a91e6f5895333f9b1b58b0d726ad%2Fqrcode_gen_output.png?alt=media" alt="" width="200"><figcaption><p>QRCode output</p></figcaption></figure>

**example.toml**

```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**

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