https://github.com/sukso96100/srvogimg
Simple Open graph image server built with go
https://github.com/sukso96100/srvogimg
Last synced: 3 months ago
JSON representation
Simple Open graph image server built with go
- Host: GitHub
- URL: https://github.com/sukso96100/srvogimg
- Owner: sukso96100
- License: mit
- Created: 2021-06-02T14:32:51.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-21T04:28:43.000Z (over 3 years ago)
- Last Synced: 2025-01-18T02:44:01.800Z (5 months ago)
- Language: Go
- Homepage: https://srvogimg.youngbin.xyz/swagger/index.html
- Size: 22.2 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# srvogimgSimple Open graph card image server
## Usage
### Environment variables
- `IMG_CACHE_PATH`: If you want to cache image on specific directory### Run server
```bash
go get
go run .
```Visit `/swagger/index.html`(If running on local environment, `localhost:8080/swagger/index.html`) to see available image render api
Example:
```
http://localhost:8080/render?imgurl=https://path.to.img/img.png&text=HelloWorld&startcolor=E95420&endcolor=E95420
```## Credits
- [Default icon - from icons8.com](https://icons8.com/icon/65355/document)
- Default font - Merged following 2 fonts
- [Spoqa Han Sans Neo](https://spoqa.github.io/spoqa-han-sans/)
- [Adobe EmojiOne Color](https://github.com/adobe-fonts/emojione-color)