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.3.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.3.0.tar.gz.
File metadata
- Download URL: gifgen-1.3.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 |
0fd9587ef953c392700cfda2436bc4cacb42824905251c95dde68a40c0a313da
|
|
| MD5 |
0e4147edd3f612072b98361abd520dab
|
|
| BLAKE2b-256 |
431e0ff4375be1a22fdc03aa9678534c9f600bc5b14fc79490da2cf4bf01918c
|
File details
Details for the file gifgen-1.3.0-py3-none-any.whl.
File metadata
- Download URL: gifgen-1.3.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 |
8479ca03bc5d4985b865eb471eb7e49c9771b651a08e453c9ae783e29725491d
|
|
| MD5 |
8bed0e0943e3b4bfb122fcbfe988f893
|
|
| BLAKE2b-256 |
8d975800862684efaec5933374319752dec2c2a89b9eb1a1dc46fb5d0b6f9871
|