ogi
(open graph image) is a tool that generates social media images with a geopattern background.
$ go get github.com/soulim/ogi
$ ogi --text="Hello, world." \
--note="https://www.example.com" \
--width=1200 \
--height=628 \
--pattern="nested-squares" \
> cover.png
The command above created cover.png
file with the following image:
See more examples in docs/examples directory.
NOTE: The color of the background depends on the value of the text
option.
This value is used a seed for color generation. In other words, each text has
it's own color.
- "Programatically generate gorgeous social media images in Go." by Mat Ryer
- JetBrains Mono font
- Go Graphics package for Go
geopattern
package for Gooksvg
package for Go
Thank you everyone for making ogi
possible!
PRs accepted.
MIT © Alexander Sulim