Skip to main content

Slices an image into its constituent parts

Project description

GitHub release (latest by date) PyPI - Downloads GitHub

Description

This script takes images and uses transparent pixel grids in order to seperate each object into smaller files. A test image is included in order to see how this script works.

Requirements

This package needs Pillow which can be done through:

pip install Pillow

Installation

To install:

pip install slicer-img

Usage

cd {main folder}
slice {path to image file} {format}

Examples

Uses test.png and outputs in default png format

slice test.png

To specify a different format, type the format like below

slice test.png jpg

This format works too

slice test.png .jpg

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

slicer-img-2.1.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

slicer_img-2.1.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file slicer-img-2.1.1.tar.gz.

File metadata

  • Download URL: slicer-img-2.1.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for slicer-img-2.1.1.tar.gz
Algorithm Hash digest
SHA256 b1f55a574430e98e1481ad86088f2b531f06324c4d366885326165bf5d23b9b9
MD5 c12eb13c5ee92e24eb5f26e4fb469ea5
BLAKE2b-256 e3b831d1e58e5207b3065a0b982154f6253b8b4a6547de6cd2c0f2cce67a0972

See more details on using hashes here.

File details

Details for the file slicer_img-2.1.1-py3-none-any.whl.

File metadata

  • Download URL: slicer_img-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for slicer_img-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4668824990be8e6b37627f8e3301278de1176c641d23f63537d6d6fbea3690a
MD5 2ad14ce7a273b20165fe2282be0904be
BLAKE2b-256 58fecd0ba9d7eb5ae6db006f0454aa96b82ec265e5e7e4635f2e7ffa5389a0ae

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