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.2.0.tar.gz
(2.3 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.2.0.tar.gz.
File metadata
- Download URL: gifgen-1.2.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16f0cf48ed042bc644675af7410c7a540eba32e8537242e55c11ef81f3cd85ed
|
|
| MD5 |
e16b4c5130aee6a64bc7e48d3348e147
|
|
| BLAKE2b-256 |
fa60f33adbe7f7b08f4651b52281438edcf1389819322e71d2b68d0ed9cd1191
|
File details
Details for the file gifgen-1.2.0-py3-none-any.whl.
File metadata
- Download URL: gifgen-1.2.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5888145d9837fd664fdc187bfda85f36c5a137991578fae6085bdc56255d41ef
|
|
| MD5 |
ee10513971ff2667f091c3b606d1791c
|
|
| BLAKE2b-256 |
8ebdccc5fb170f09e0395f1cf325ec33227146898a540cfe2e2d8cfd94434fd5
|