README
¶
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
- default (no params)
Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = &Options{ Width: 200, Height: 200, Mask: "plain", Colors: []color.RGBA{ color.RGBA{0, 0, 0, 0xff}, color.RGBA{0xff, 0xff, 0xff, 0xff}, }, Size: 80, DPI: 72, Desc: "Dummy image generator", }
to be used only with dopt.Copy(), otherwise the default colors can be changed.
Functions ¶
Types ¶
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|