Skip to main content

🎬 A playful Python library for converting image sequences into animated GIFs

Project description

Support Palestine
imgif_banner

✨ 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

  • Built with Pillow 📸
  • CLI powered by click 🖱️
  • Beautiful output by rich 💎

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

imgif-0.2.1.tar.gz (116.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

imgif-0.2.1-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

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

Hashes for imgif-0.2.1.tar.gz
Algorithm Hash digest
SHA256 9f60d02fcbae11fa2c051dd2f4059cb2739f0128bf2f82c1a18035d792ddde1b
MD5 f757350cf7b18bbee99faad2e33a82a7
BLAKE2b-256 26e1447bd0bab0dad287bae3347a9f27834ba308524c71cc499f6cdd62406942

See more details on using hashes here.

Provenance

The following attestation bundles were made for imgif-0.2.1.tar.gz:

Publisher: cd.yml on atick-faisal/img2gif

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for imgif-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 05e4f3c04b96acdd4786d44482853a4dff5ce5697c938e18d31a3651dc3626ed
MD5 6987abd735bcf15e0397057ca2bcdd96
BLAKE2b-256 3fa8a5017dc767e153aeaacf6c18339fb589d5ec5890f50d95f58a433e95542a

See more details on using hashes here.

Provenance

The following attestation bundles were made for imgif-0.2.1-py3-none-any.whl:

Publisher: cd.yml on atick-faisal/img2gif

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page