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.1.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for ImageLayers-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e37ff601fc940e6141510bd453dc5cc27c21b63b79d42be2e1e9ecac4628379b |
|
MD5 | 9f1e0af308152902d65040e002331c4a |
|
BLAKE2b-256 | cbce04975542d40c36f7d2d1bf742fd74fb9d25d1e0782c8dbbc67a1e1125ba5 |