Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.25 KB

README.md

File metadata and controls

48 lines (32 loc) · 1.25 KB

ogi

ogi (open graph image) is a tool that generates social media images with a geopattern background.

Install

$ go get github.com/soulim/ogi

Usage

$ 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:

Example

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.

Credits

Thank you everyone for making ogi possible!

Contributing

PRs accepted.

License

MIT © Alexander Sulim