~mendelmaleh/dummy

ref: 499e61f9acfef8973b4c1e1be309f5d015193276 dummy/README.md -rw-r--r-- 661 bytes
499e61f9Mendel E Separate API from base package 1 year, 4 months ago

#dummy

A simple placeholder image generator. Supports specifying width, height, and colors. Soon text, fonts, font size, and patterns.

#install

go get git.sr.ht/~mendelmaleh/dummy

#config

The config uses the TOML format. You should define the address:port it runs on, and its pattern root endpoint.

Additionally, a directory with fonts is required, with minimum one font, set as the default. Ensure the fonts value has a trailing slash.

[dummy]
addr = "localhost:port"
pattern = "/"
fonts = "fonts/"
font = "Open Sans"

#usage

The API is documented here.

#examples