https://github.com/grandmoff100/imagelayers
Split and process image layers and segments.
https://github.com/grandmoff100/imagelayers
image-processing image-segmentation pillow pypi-package python3 readme
Last synced: 7 months ago
JSON representation
Split and process image layers and segments.
- Host: GitHub
- URL: https://github.com/grandmoff100/imagelayers
- Owner: GrandMoff100
- Created: 2021-03-24T00:19:29.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-27T00:38:48.000Z (over 4 years ago)
- Last Synced: 2025-02-24T14:41:25.225Z (8 months ago)
- Topics: image-processing, image-segmentation, pillow, pypi-package, python3, readme
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 Imagewith 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
```