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.1.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for ImageLayers-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79f8518b9b7fdf7ec578337841bc366b6c674c91b3dc38fe29cf5e9abbb00872 |
|
MD5 | f3a51b58936dad5d64326297ef58567a |
|
BLAKE2b-256 | f604f20609f147d71ce70fb168bc1dc3df3eac99c542c39bd50eaa9d3de50b92 |