A package to convert images in folders to GIFs
Project description
gifgen
gifgen is a Python package for converting images in specified folders into GIFs. It provides a simple interface to create GIF animations from sets of images.
Features
- Convert images in multiple folders into GIFs.
- Customize GIF duration per frame.
- Simple and easy-to-use interface.
Installation
You can install gifgen using pip:
pip install gifgen
Usage
```python
from gifgen.converter import convert_images_to_gif
# Example 1: Convert specific folders to GIFs with default duration (500 ms)
image_folders = ['path/to/folder1', 'path/to/folder2']
output_folder = 'path/to/output'
convert_images_to_gif(image_folders, output_folder)
# Example 2: Convert all subfolders of a parent folder to GIFs with custom duration (e.g., 500 ms)
input_folder = 'input/*'
output_folder = 'path/to/output'
convert_images_to_gif(input_folder, output_folder, duration=500)
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gifgen-1.1.0.tar.gz
(2.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gifgen-1.1.0.tar.gz.
File metadata
- Download URL: gifgen-1.1.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bdf0d147ffcf7226912a450f8de6911cdd534eef5e188a6837258977764df442
|
|
| MD5 |
05e8b1f6f08faf5ade305ae2463c5472
|
|
| BLAKE2b-256 |
ffb325e6b3dccb2ccb2c42d2276d26ef303494f9ef52a1d0cf0a7dea7c12ca2b
|
File details
Details for the file gifgen-1.1.0-py3-none-any.whl.
File metadata
- Download URL: gifgen-1.1.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
459647bd8602b1713d34b4ef9506708b4c56b97668e74f93a77f1e691ead2791
|
|
| MD5 |
d51e2508372e49c50f9823c916efbfa7
|
|
| BLAKE2b-256 |
d06b08c13e709936d9cf59bbd4fc495ee3efcd2c22c1d1048feb64a260a7e44f
|