Metadata-Version: 2.1
Name: ImageLayers
Version: 0.2.0.1
Summary: Split and process image segments and layers.
Home-page: https://github.com/GrandMoff100/ImageLayers
Author: GrandMoff100
Author-email: nlarsen23.student@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Description-Content-Type: text/markdown
Requires-Dist: pillow

# ImageLayers


## Installation
There are a variety of ways to install this project.

### From [Github](https://github.com/GrandMoff100/ImageLayers)
```
$ git clone https://github.com/GrandMoff100/ImageLayers
$ cd ImageLayers
$ python setup.py install
```

### From [PyPI](https://pypi.org/project/imagelayers)
```
$ pip install imagelayers
```

## Usage

This project provides two classes, `ImageLayer`, and `LayeredImage`.

### Example
```py
from PIL import Image

with Image.open('image.png') as f:
    img = LayeredImage(f)

    i = 0
    for layer in img.layersbyedge(): # layer is an instance of `ImageLayer`
        layer.save(f'layer{i}.png')
        i += 1
```


