https://github.com/Nooshu/node-countdown-gif
Using Node to generate a countdown Gif. Serve or download it as required.
https://github.com/Nooshu/node-countdown-gif
Last synced: 20 days ago
JSON representation
Using Node to generate a countdown Gif. Serve or download it as required.
- Host: GitHub
- URL: https://github.com/Nooshu/node-countdown-gif
- Owner: Nooshu
- License: mit
- Created: 2016-06-19T22:21:28.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2021-08-10T07:32:09.000Z (almost 5 years ago)
- Last Synced: 2025-07-20T15:24:39.314Z (11 months ago)
- Language: JavaScript
- Size: 235 KB
- Stars: 76
- Watchers: 4
- Forks: 56
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-projects - node-countdown-gif - Using Node to generate a countdown Gif. Serve or download it as required. ⭐76 `JavaScript` (📦 Legacy & Inactive Projects)
README
# Gif countdown generator
The very simple app I have created allows you to generate a countdown timer animated gif depending on the URL parameters you provide. [View demo](https://date-gif.herokuapp.com/). Now no longer maintained.
## URL Parameters (*required)
* **time*** - Date & time when your countdown will end [e.g. 2016-06-24T20:35]
* **frames** - number of frames (also number of seconds) the countdown will run before looping [defaults to 30]
* **width** - width in pixels [defaults to 200]
* **height** - height in pixels [defaults to 200]
* **bg** - hex colour code for the background [defaults to 000000]
* **color** - hex colour code for the text [defaults to ffffff]
* **name** - filename used for the generated gif [defaults to 'default']
## Generate Examples
These trigger a download. Change the URL from `/generate` to `/serve` when used in an image tag.
* **Basic**: [/generate?time=2018-09-24T20:35](https://date-gif.herokuapp.com/generate?time=2018-09-24T20:35&name=ex1)
* **Custom dimensions**: [/generate?time=2018-09-24T20:35&width=300&height=150](https://date-gif.herokuapp.com/generate?time=2018-09-24T20:35&width=300&height=150&name=ex2)
* **Custom colours**: [/generate?time=2018-09-24T20:35&bg=028900&color=adff00](https://date-gif.herokuapp.com/generate?time=2018-09-24T20:35&bg=028900&color=adff00&name=ex3)
* **Custom name & frames**: [/generate?time=2018-09-24T20:35&name=awesome-gif&frames=20](https://date-gif.herokuapp.com/generate?time=2018-09-24T20:35&name=awesome-gif&frames=20)
## Versions
Tested with and designed for:
* node 6.0.0
* cairo 1.8.6
## License
[MIT](LICENSE)