Skip to main content

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


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.4.2.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

ImageLayers-0.4.2-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page