Metadata-Version: 2.4
Name: lilow
Version: 0.1.0
Summary: Modern Python image processing — everything Pillow does, and everything it couldn't
Author: lilow contributors
License-Expression: MIT
Keywords: image-processing,python,computer-vision,pillow,ai-upscaling,3d-rendering,hdr,animation,image-enhancement,deep-learning,onnx,video-processing,data-science
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Multimedia :: Graphics
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.24
Requires-Dist: pillow>=10.0
Requires-Dist: scipy>=1.10
Provides-Extra: ai
Requires-Dist: onnxruntime>=1.16; extra == "ai"
Provides-Extra: video
Requires-Dist: imageio>=2.31; extra == "video"
Requires-Dist: imageio-ffmpeg>=0.4; extra == "video"
Provides-Extra: formats
Requires-Dist: pillow-heif>=0.13; extra == "formats"
Requires-Dist: cairosvg>=2.7; extra == "formats"
Requires-Dist: rawpy>=0.18; extra == "formats"
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: pytest-cov; extra == "dev"
Requires-Dist: black; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Requires-Dist: mypy; extra == "dev"
Requires-Dist: build; extra == "dev"
Requires-Dist: twine; extra == "dev"
Provides-Extra: all
Requires-Dist: lilow[ai,dev,formats,video]; extra == "all"
Dynamic: license-file

# lilow

> **Modern Python Image Processing Library**
> *Everything Pillow does, and everything it couldn't.*

[![PyPI version](https://img.shields.io/pypi/v/lilow)](https://pypi.org/project/lilow/)
[![Python Versions](https://img.shields.io/pypi/pyversions/lilow)](https://pypi.org/project/lilow/)
[![License](https://img.shields.io/pypi/l/lilow)](LICENSE)
[![CI](https://github.com/lilow/lilow/actions/workflows/ci.yml/badge.svg)](https://github.com/lilow/lilow/actions/workflows/ci.yml)

```python
from lilow import LilowImage

# Chainable API
img = LilowImage.open("photo.jpg")
result = img.brightness(1.2).contrast(1.1).sharpen(1.0).vignette(0.3).save("out.jpg")

# HDR tonemapping
LilowImage.open("hdr.exr").tonemap(method="aces").save("out.jpg")

# 3D rendering
from lilow.threed import Scene, Mesh, Light
scene = Scene()
scene.add(Mesh.sphere(radius=1.0))
scene.add(Light.directional(direction=(1, -1, -1), color="white"))
scene.render(800, 600).save("sphere.png")
```

## Installation

```bash
pip install lilow
```

## Features

- **Chainable API** — `img.resize().sharpen().upscale().save()`
- **Pillow-compatible** — migration with minimal changes
- **23 blending modes** — Multiply, Screen, Overlay, Color Dodge, etc.
- **HDR tonemapping** — Reinhard, ACES, Filmic, Drago
- **3D renderer** — software rasterizer with Phong shading, shadows, OBJ loader
- **3D effects on 2D** — extrude, perspective 3D, drop shadow, bump map
- **AI upscaling** — Real-ESRGAN via ONNX Runtime
- **Background removal** — U2Net via ONNX
- **Animated GIF** — read, write, manipulate
- **Color spaces** — RGB, HSL, HSV, LAB, XYZ, CMYK, YUV
- **Full I/O** — JPEG, PNG, WebP, GIF, TIFF, AVIF, HEIC, SVG, RAW
