Metadata-Version: 2.4
Name: entirius-py-image-transformations
Version: 2.0.0
Summary: Image resize and background-removal transformations (Pillow + OpenCV)
Project-URL: Repository, https://github.com/entirius/entirius-py-image-transformations
Author: Entirius
License-Expression: MPL-2.0
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: matplotlib>=3.5
Requires-Dist: opencv-contrib-python>=4.5
Requires-Dist: pillow>=9.1.1
Provides-Extra: dev
Requires-Dist: pre-commit; extra == 'dev'
Requires-Dist: ruff; extra == 'dev'
Provides-Extra: test
Requires-Dist: pytest; extra == 'test'
Description-Content-Type: text/markdown

# image-transformations

Image resize and background-removal transformations built on Pillow and OpenCV —
ratio-safe and fill-crop resizes with white/black/pink/transparent backgrounds,
plus kernel- and flood-fill-based background removal.

## Installation

```shell
pip install entirius-py-image-transformations
```

## Usage

```python
from image_transformations import resize_ratio_safe_bg_white, remove_background_flood_fill

resize_ratio_safe_bg_white("in.jpg", "out.jpg", 500, 500)
remove_background_flood_fill("in.jpg", "out.png")
```

## Development

```shell
make install     # sync dependencies (uv)
make check       # lint + format check (ruff)
make test        # test suite (pytest) — smoke transformations over tests/examples/
```

Development and agent instructions: [AGENTS.md](AGENTS.md).

## License

Mozilla Public License 2.0 — see [LICENSE](LICENSE).
