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.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ImageLayers-0.4.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file ImageLayers-0.4.0.tar.gz.

File metadata

  • Download URL: ImageLayers-0.4.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.8.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for ImageLayers-0.4.0.tar.gz
Algorithm Hash digest
SHA256 c344fb2215e96eca087e8fb5b648a8593f8307a63ef02700d9a606f36d956467
MD5 8273b0152a953b3a2193add3ae7fde48
BLAKE2b-256 ffb2e4353ab6190eb0d38fe44d7db921f2e5fed3d210de006947ec631c7a51d2

See more details on using hashes here.

File details

Details for the file ImageLayers-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: ImageLayers-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.8.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.8.0 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for ImageLayers-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 815cdbc2f77f49f9f4aa17ed98dbd277bd7dbfb8599e9029ef16daf3f4a36ded
MD5 5768b6be2c463e2116c73d5f921b92b7
BLAKE2b-256 ff34820f329e0928982531ab9628d199867694ceb3d9397bc792ab4d5d55be01

See more details on using hashes here.

Supported by

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