~mendelmaleh/dummy

Dummy image generator
Add some examples
5635acb8 — Mendel E 4 years ago
Go module
83481f7c — Mendel E 4 years ago
Move handlers to their own file

clone

read-only
https://git.sr.ht/~mendelmaleh/dummy
read/write
git@git.sr.ht:~mendelmaleh/dummy

You can also use your local clone with git send-email.

#dummy

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

#install

To install the web service:

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

#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