Metadata-Version: 2.1
Name: pillow-jxl-plugin
Version: 1.0.1
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Dist: Pillow
License-File: LICENSE
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# pillow-jpegxl-plugin
Pillow plugin for JPEG-XL, using Rust for bindings.

## Features
- JPEG-XL Plugin for Pillow
- Encoder/Decoder to work with JPEG-XL using safe wrapper

## Install via PIP
```
pip install pillow-jxl-plugin
```

## Plugin Usage
Use `import pillow_jxl` to register the plugin in your code. 

### Example:
```python
import pillow_jxl
from PIL import Image

# Lossless encode a png image
with Image.open("example.png") as img:
    img.save("example.jxl",lossless=True)

# Decode jxl image
with Image.open("example.jxl") as img:
    display(img)
```

## Wheels status
| Wheels      | Windows 64-bit | MacOS | manylinux |
|-------------|:--------------:|:-----:|:---------:|
| CPython3.8  |        ✔       |   ✔   |     ♻     |
| CPython3.9  |        ✔       |   ✔   |     ♻     |
| CPython3.10 |        ✔       |   ✔   |     ♻     |
| CPython3.11 |        ✔       |   ✔   |     ♻     |
| CPython3.12 |        ❌       |   ❌   |     ♻     |
| PyPy3.8     |        ❌       |   ❌   |     ♻     |
| PyPy3.9     |        ❌       |   ❌   |     ♻     |
| PyPy3.10    |        ❌       |   ❌   |     ♻     |

♻: Work in progress, avaliable platforms: `x86`, `x86_64` and `aarch64`
## Credits
- [inflation/jpegxl-rs](https://github.com/inflation/jpegxl-rs)

