Metadata-Version: 2.1
Name: split-image
Version: 1.1.1
Summary: A package that lets you quickly split an image into rows and columns (tiles).
Home-page: https://github.com/whiplashoo/split-image
Author: Minas Giannekas
Author-email: acontact@whidev.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/whiplashoo/split-image/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

#split-image


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

[split-image](https://pypi.org/project/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.


```



