Metadata-Version: 2.1
Name: dithering
Version: 0.1.22
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
License-File: LICENSE
Summary: Efficient implementations of various image dithering methods.
Home-Page: https://backyardml.github.io/
Author: Patrik Larsson <patrik@backyardml.se>
Author-email: Patrik Larsson <patrik@backyardml.se>
Requires-Python: >=3.7
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Source Code, https://github.com/BackyardML/dithering

<p align="center">
    <br>
    <img src="https://raw.githubusercontent.com/BackyardML/dithering/72ea732b8c7372af6f427a5f8244af158d80d208/resources/dithering.svg" width="600"/>
    <br>
<p>

![CI](https://github.com/BackyardML/dithering/actions/workflows/CI.yml/badge.svg)


## Overview
Welcome to Dithering, a project that brings efficient Rust implementation of various image dithering methods to be used in Python!

## Installation
```
pip install dithering
```

## Usage
```python
from PIL import Image
from dithering import ordered_dither
import numpy as np

input_image = np.array(Image.open('path/to/image.jpeg').convert('L'))

dither_matrix = np.array([[0, 128], [192, 64]], dtype=np.uint8)

output = ordered_dither(input_image, dither_matrix)


```

