https://github.com/kinduff/dimg
Generates dynamic social media images for the blog at kinduff.com
https://github.com/kinduff/dimg
Last synced: 4 months ago
JSON representation
Generates dynamic social media images for the blog at kinduff.com
- Host: GitHub
- URL: https://github.com/kinduff/dimg
- Owner: kinduff
- License: unlicense
- Created: 2021-09-03T12:46:07.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-03T13:15:29.000Z (almost 5 years ago)
- Last Synced: 2025-02-22T21:43:42.797Z (over 1 year ago)
- Language: HTML
- Size: 273 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dynamic Image
Small app to generate social media images dynamically for my blog at kinduff.com
It uses ExpressJS, Puppeteer, and EJS to generate the images.
Backgrounds are courtesey of [this unsplash collection](https://unsplash.com/collections/573009/micro-worlds).
## Setup
1. Clone the repository
2. Install dependencies: `yarn install`
3. Run the server at port 8080 `yarn start`
## How to use it
No configuration required, it will output a 1200x600 pixels image when hitting the path `/(:base64).jpg`.
It's pretty easy to modify in case you want to extend it, feel free to steal it.
## Example
```
http://0.0.0.0:8080/TG9yZW0gSXBzdW0gRG9sb3IgU2l0IEFtZXR8SSBkb24ndCBzcGVhayBMYXRpbiBidXQgSSBkb24ndCBjYXJl.jpg
```
