Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 756 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 756 Bytes

srvogimg

Simple Open graph card image server

Usage

Environment variables

  • IMG_CACHE_PATH: If you want to cache image on specific directory

Run server

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