🎬 A playful Python library for converting image sequences into animated GIFs
Project description
✨ A playful Python library for converting image sequences into animated GIFs with ease!
Turn your image sequences into delightful animated GIFs with just a few lines of code. Whether you're creating animations from screenshots, visualizing data, or just having fun, imgif makes it simple and enjoyable! 🚀
🌟 Features
- 🎨 Simple API - Convert images to GIF in just 3 lines of code
- ⚡ Fast & Efficient - Built on Pillow for optimal performance
- 🎛️ Highly Configurable - Control duration, quality, size, and more
- 💻 CLI Interface - Use directly from the command line
- 📝 Fully Typed - Complete type annotations for great IDE support
- 🧪 100% Test Coverage - Reliable and well-tested
- 🎭 Rich Output - Beautiful progress indicators and error messages
📦 Installation
# Using pip
pip install imgif
# Using uv (recommended for development)
uv pip install imgif
🚀 Quick Start
Python API
from img2gif import ImageToGifConverter
# Create converter
converter = ImageToGifConverter()
# Convert images to GIF
converter.convert(
input_dir="./my_images",
output_path="./output.gif",
duration=0.5, # seconds per frame
)
print("🎉 GIF created successfully!")
Command Line
# Basic usage
imgif ./my_images output.gif
# With options
imgif ./my_images output.gif --duration 0.5 --loop 0
# See all options
imgif --help
📖 Documentation
Full documentation is available at imgif.readthedocs.io (coming soon!)
🛠️ Development
Setup
# Clone the repository
git clone https://github.com/atick-faisal/img2gif.git
cd img2gif
# Install dependencies using uv
uv sync
# Install pre-commit hooks
pre-commit install
Running Tests
# Run tests on default Python version
hatch run test:all
# Run tests on all supported Python versions
hatch run test:all
# Run with coverage
hatch run test:cov
Linting & Formatting
# Check code
ruff check .
# Format code
ruff format .
🤝 Contributing
Contributions are welcome! Please check out our Contributing Guide for details.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
Made with ❤️ and Python 🐍
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
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 imgif-0.2.1.tar.gz.
File metadata
- Download URL: imgif-0.2.1.tar.gz
- Upload date:
- Size: 116.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f60d02fcbae11fa2c051dd2f4059cb2739f0128bf2f82c1a18035d792ddde1b
|
|
| MD5 |
f757350cf7b18bbee99faad2e33a82a7
|
|
| BLAKE2b-256 |
26e1447bd0bab0dad287bae3347a9f27834ba308524c71cc499f6cdd62406942
|
Provenance
The following attestation bundles were made for imgif-0.2.1.tar.gz:
Publisher:
cd.yml on atick-faisal/img2gif
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
imgif-0.2.1.tar.gz -
Subject digest:
9f60d02fcbae11fa2c051dd2f4059cb2739f0128bf2f82c1a18035d792ddde1b - Sigstore transparency entry: 651477445
- Sigstore integration time:
-
Permalink:
atick-faisal/img2gif@ad5f3f5dff909b024ce7c906f7b6e76d7ec12c1f -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/atick-faisal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@ad5f3f5dff909b024ce7c906f7b6e76d7ec12c1f -
Trigger Event:
release
-
Statement type:
File details
Details for the file imgif-0.2.1-py3-none-any.whl.
File metadata
- Download URL: imgif-0.2.1-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05e4f3c04b96acdd4786d44482853a4dff5ce5697c938e18d31a3651dc3626ed
|
|
| MD5 |
6987abd735bcf15e0397057ca2bcdd96
|
|
| BLAKE2b-256 |
3fa8a5017dc767e153aeaacf6c18339fb589d5ec5890f50d95f58a433e95542a
|
Provenance
The following attestation bundles were made for imgif-0.2.1-py3-none-any.whl:
Publisher:
cd.yml on atick-faisal/img2gif
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
imgif-0.2.1-py3-none-any.whl -
Subject digest:
05e4f3c04b96acdd4786d44482853a4dff5ce5697c938e18d31a3651dc3626ed - Sigstore transparency entry: 651477450
- Sigstore integration time:
-
Permalink:
atick-faisal/img2gif@ad5f3f5dff909b024ce7c906f7b6e76d7ec12c1f -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/atick-faisal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@ad5f3f5dff909b024ce7c906f7b6e76d7ec12c1f -
Trigger Event:
release
-
Statement type: