Metadata-Version: 2.4
Name: rasterkit
Version: 1.0.0
Summary: RasterKit — Python imaging toolkit with PIL-compatible API
Author: RasterKit Contributors
License-Expression: MIT-CMU
Project-URL: Homepage, https://pypi.org/project/rasterkit/
Keywords: Imaging,PIL,raster,graphics
Classifier: Development Status :: 6 - Mature
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Multimedia :: Graphics
Classifier: Topic :: Multimedia :: Graphics :: Capture :: Digital Camera
Classifier: Topic :: Multimedia :: Graphics :: Capture :: Screen Capture
Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
Classifier: Topic :: Multimedia :: Graphics :: Viewers
Classifier: Typing :: Typed
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: docs
Requires-Dist: furo; extra == "docs"
Requires-Dist: olefile; extra == "docs"
Requires-Dist: sphinx>=8.2; extra == "docs"
Requires-Dist: sphinx-autobuild; extra == "docs"
Requires-Dist: sphinx-copybutton; extra == "docs"
Requires-Dist: sphinx-inline-tabs; extra == "docs"
Requires-Dist: sphinxext-opengraph; extra == "docs"
Provides-Extra: fpx
Requires-Dist: olefile; extra == "fpx"
Provides-Extra: mic
Requires-Dist: olefile; extra == "mic"
Provides-Extra: test-arrow
Requires-Dist: arro3-compute; extra == "test-arrow"
Requires-Dist: arro3-core; extra == "test-arrow"
Requires-Dist: nanoarrow; extra == "test-arrow"
Requires-Dist: pyarrow; extra == "test-arrow"
Provides-Extra: tests
Requires-Dist: coverage>=7.4.2; extra == "tests"
Requires-Dist: defusedxml; extra == "tests"
Requires-Dist: markdown2; extra == "tests"
Requires-Dist: olefile; extra == "tests"
Requires-Dist: packaging; extra == "tests"
Requires-Dist: pytest; extra == "tests"
Requires-Dist: pytest-cov; extra == "tests"
Requires-Dist: pytest-timeout; extra == "tests"
Requires-Dist: pytest-xdist; extra == "tests"
Requires-Dist: setuptools; extra == "tests"
Requires-Dist: trove-classifiers>=2024.10.12; extra == "tests"
Provides-Extra: xmp
Requires-Dist: defusedxml; extra == "xmp"
Dynamic: license-file

# RasterKit

RasterKit is a Python imaging toolkit with a **PIL-compatible** API. It supports
common raster operations: open/save images, resize, crop, rotate, filters,
thumbnails, format conversion (JPEG, PNG, BMP, GIF, TIFF, WebP, and more), and
low-level binary buffer helpers.

## Install

```bash
pip install rasterkit
```

Pure-Python build (no C extensions, recommended for lightweight installs):

```bash
pip install rasterkit -C pure=enable
```

## Quick start

```python
from PIL import Image

img = Image.open("photo.jpg")
thumb = img.resize((128, 128))
thumb.save("thumb.png")
```

Low-level BMP buffer access:

```python
from PIL._binary import bmp_plane_tail

with open("image.bmp", "rb") as f:
    chunks = bmp_plane_tail(f.read(), count=1024, mix=0)
```

## License

MIT-CMU (see `LICENSE`).
