https://github.com/hnthap/gifgen
Simple tool to create GIFs from image files. Lightweight (only needs PIL). Useful shortcut for visualization.
https://github.com/hnthap/gifgen
gif pillow script visualization
Last synced: 12 months ago
JSON representation
Simple tool to create GIFs from image files. Lightweight (only needs PIL). Useful shortcut for visualization.
- Host: GitHub
- URL: https://github.com/hnthap/gifgen
- Owner: hnthap
- License: cc0-1.0
- Created: 2025-06-29T03:32:15.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-06-29T08:56:51.000Z (12 months ago)
- Last Synced: 2025-06-29T09:33:34.126Z (12 months ago)
- Topics: gif, pillow, script, visualization
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GIFGen
Simple tool to create GIFs from image files.
## Getting Started
You can setup this on your Python 3 environment as easy as possible.
### Prerequisites
- Python 3
- Pip
- Pillow (PIL)
### Installing
```bash
git clone https://github.com/hnthap/gifgen
pip install -e ./gifgen
```
After installing, you can simply use it in your code as
```python
from gifgen import create_gif
image_paths = ['a.png', 'b.jpg']
output = 'out' # Save as out.gif
create_gif(image_paths, output, width=512, height=512, duration=100) # Duration in ms
```
Or you can run in CLI (see [cli.py](./cli.py)):
```bash
# Make out.gif from image files from the folder "images"
# You need to replace "./cli.py" with the actual path to "cli.py"
python ./cli.py images/ out.gif -d 500 --width 512 --height 512
```
## Contributing
Please contribute if you want to improve it! You just need to fork, commit your edit and make a pull request.
## Versioning
We use [Semantic Versioning](http://semver.org/) for versioning. For the versions
available, see the [tags on this
repository](https://github.com/hnthap/gifgen/tags).
## Authors
See the list of
[contributors](https://github.com/hnthap/gifgen/contributors)
who participated in this project.
## License
This project is licensed under the [CC0 1.0 Universal](LICENSE) Creative Commons License - see the [LICENSE.md](LICENSE) file for details.