Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soulim/ogi
A tool to generate social media images with a geopattern background.
https://github.com/soulim/ogi
generator geopattern tool
Last synced: about 12 hours ago
JSON representation
A tool to generate social media images with a geopattern background.
- Host: GitHub
- URL: https://github.com/soulim/ogi
- Owner: soulim
- License: mit
- Created: 2021-05-12T10:42:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-26T14:40:02.000Z (almost 3 years ago)
- Last Synced: 2024-06-20T11:56:56.589Z (5 months ago)
- Topics: generator, geopattern, tool
- Language: Go
- Homepage:
- Size: 409 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ogi
`ogi` (**o**pen **g**raph **i**mage) is a tool that generates social media images with a geopattern background.
## Install
```ShellSession
$ go get github.com/soulim/ogi
```## Usage
```ShellSession
$ 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](./docs/examples/cover.png)
See more examples in [docs/examples](./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
* ["Programatically generate gorgeous social media images in Go."](https://pace.dev/blog/2020/03/02/dynamically-generate-social-images-in-golang-by-mat-ryer.html) by Mat Ryer
* [JetBrains Mono font](https://www.jetbrains.com/lp/mono/)
* [Go Graphics](https://github.com/fogleman/gg) package for Go
* [`geopattern`](https://github.com/pravj/geopattern) package for Go
* [`oksvg`](https://github.com/srwiley/oksvg) package for GoThank you everyone for making `ogi` possible!
## Contributing
PRs accepted.
## License
MIT © Alexander Sulim