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.3.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for ImageLayers-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c76d837bc52d9207a5af7d6a0ae5ef50749fa2c526fb460bb366a6d75bf2a8d5 |
|
MD5 | da6a4e5dc674e0501a1929965d8bcb6a |
|
BLAKE2b-256 | ada9cad025e67a3c6f0761e1352f295c0f0ca0951afe4747dcb1e3bef0dfd21b |