Skip to content

GrandMoff100/ImageLayers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages