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

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.0.0.tar.gz (3.0 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.0.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ImageLayers-0.0.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 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.0.0.tar.gz
Algorithm Hash digest
SHA256 30c636d01d1ed64afff2f16b1c60e453e5c261362f865062fdc93cb70c34c326
MD5 70915a9ce132fbdbcd5bb6f886a6337c
BLAKE2b-256 bd2e16def89d23328815c135e0def94913a073837828948ffc7fcd3d0b684f24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ImageLayers-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f56b52662cd95b9965063e61dd23a656198b28d31cb0247f1c231f7866766c2c
MD5 a628a790d42757fcd859d582de4c7753
BLAKE2b-256 089578f3a36cb5714388a38d2e73988d20704bad8ea6a9ecc1975c3d0b1af06c

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