ImageLayers
Installation
There are a variety of ways to install this project.
Github
From$ git clone https://github.com/GrandMoff100/ImageLayers
$ cd ImageLayers
$ python setup.py install
PyPI
From$ pip install imagelayers
Usage
This project provides two classes, ImageLayer
, and LayeredImage
.
Example
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