Split and process image segments and layers.
Project description
ImageLayers
Installation
There are a variety of ways to install this project.
From Github
$ git clone https://github.com/GrandMoff100/ImageLayers
$ cd ImageLayers
$ python setup.py install
From PyPI
$ 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ImageLayers-0.4.1.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for ImageLayers-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da84d39608e3a209c9f4e3cd371a55dc1c5b78b2831ca34dca2691aee11bcacc |
|
MD5 | 1a4795cb16326801a0e5fb1fd9aa84ed |
|
BLAKE2b-256 | d91181d1a6a58b09207bd510a8d1d470cf3d9f6ed9169126efe46e558e6b70e8 |