Puhu 🦉 - High-Performance Image Processing

CI PyPI Python Rust License

A modern image processing library for Python, powered by Rust. Puhu provides a Pillow-compatible API while delivering significantly better performance for common image operations.

Key Features

  • High Performance: Significantly fast for common image operations

  • Pillow Compatible: Drop-in replacement for most Pillow operations

  • Rust Powered: Memory-safe and efficient core written in Rust

  • Easy to Use: Simple, intuitive API that feels familiar

  • Format Support: PNG, JPEG, BMP, TIFF, GIF, WEBP

Quick Example

import puhu

# Open an image
img = puhu.open("photo.jpg")

# Resize image
resized = img.resize((800, 600))

# Crop image
cropped = img.crop((100, 100, 500, 400))

# Rotate image
rotated = img.rotate(90)

# Save image
img.save("output.png")

Platform Support

Pre-built wheels available for:

  • Linux (x86_64, ARM64)

  • macOS (Intel, Apple Silicon M1/M2/M3)

  • Windows (x64)

  • Python 3.8+

Documentation Contents

Indices and tables