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.1.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for ImageLayers-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 831053f61f47a46c7002ab33bc63bbee8857dd338d60d954a86198a82f34d4cc |
|
MD5 | 386af35f98bec1e06a458d723d015c66 |
|
BLAKE2b-256 | b3655269128c6b79af87faaba58b60b68ca2cb77a2f97bcbba168561d2aa061e |