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.2.0.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for ImageLayers-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4c7e6d097f3bb03f0b7d5d80d858eafaaad80d24916702dcde4a1541ac4e9ef |
|
MD5 | d7a320b58009bd933844029bb162e237 |
|
BLAKE2b-256 | b12500b4314b5ca125869bb4ea35776c34499af3c318da93c5b6d66b7bc27a0c |