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.0.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.0.0.tar.gz.
File metadata
- Download URL: gifgen-1.0.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 |
8ba55f303abfe1678ca069239591e7ee5c63b23ed3b376fb52d8d0db9e0a17c7
|
|
| MD5 |
9a59de6bc388849bf412b03952bddb04
|
|
| BLAKE2b-256 |
e4af26e7b7f9381c3623fbaec9cd115129b90fd7c7a52eeab182cfbc0ddfc197
|
File details
Details for the file gifgen-1.0.0-py3-none-any.whl.
File metadata
- Download URL: gifgen-1.0.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 |
69537e157c2430b093f2eb95bab9dddbc6fa76efae808bd66f1931fe2d3becd9
|
|
| MD5 |
13d554b7044bcef97006e3069c3a832d
|
|
| BLAKE2b-256 |
24e8a2d2aca9ae61a274f1d41686d06c3dbfa671633b5e3d975010edd365196a
|