Skip to main content

A package that lets you quickly split an image into rows and columns (tiles).

Project description

#split-image

Quickly split an image into rows and columns (tiles).

split-image is a Python package that you can use from the command line to split an image into tile.

Installation

pip install split-image

Usage

From the command line:

split-image [-h] [-s] image_path rows cols

Basic examples

split-image test.png 2 2

This splits the test.png image in 4 tiles (2 rows and 2 columns)

split-image test.png 3 4 -s

This splits the test.png image in 12 tiles (3 rows and 4 columns). The -square arguments resizes the image into a square before splitting it.


positional arguments:
  image_path    The path of the image to split.
  rows          How many rows to split the image into (horizontal split).
  cols          How many columns to split the image into (vertical split).

optional arguments:
  -h, --help    show this help message and exit
  -s, --square  If the image should be resized into a square before splitting.


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

split-image-1.1.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

split_image-1.1.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file split-image-1.1.1.tar.gz.

File metadata

  • Download URL: split-image-1.1.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for split-image-1.1.1.tar.gz
Algorithm Hash digest
SHA256 f50a58f197eef1220d9a090d86fda77b79f0a4d486e75b15a49a1c1188c3b1d1
MD5 b5782b12ed4d35c7f65226952c132d7f
BLAKE2b-256 9d5b7da287e63bba72a28a1148b405589348933d4562bfb823cc98eb6d3acfa8

See more details on using hashes here.

File details

Details for the file split_image-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: split_image-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for split_image-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 376c5b233e63d052470a3df028437d9bc25b5bc6e46778f27bef1f1bf42af0dd
MD5 1191e2b82a155e0904911ecdd200213f
BLAKE2b-256 aca10250a2abee521bc7494762b737a585e904de95233e8ab1c903fcec6ee76b

See more details on using hashes here.

Supported by

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