Skip to main content

Command line tool for slicing an image on a grid. Good for spritesheets and that kind of thing.

Project description

gridslice

Command line tool for slicing an image on a grid. Good for spritesheets and that kind of thing.

Install

pip install gridslice

Usage

usage: gridslice [-h]
                 input_image_path start_x start_y width height slices_x slices_y

Command line tool for slicing an image on a grid.

positional arguments:
  input_image_path  Path to the input image file
  start_x           Start x
  start_y           Start y
  width             Slice width
  height            Slice height
  slices_x          Number of x slices
  slices_y          Number of y slices

optional arguments:
  -h, --help        show this help message and exit

start_x and start_y represent the top corner of the area to take slices from. width and height are the size of each slice. slices_x and slices_y are the number of slices of the specified size to make in each direction.

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

gridslice-1.0.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distributions

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

gridslice-1.0.0-py3.6.egg (3.6 kB view details)

Uploaded Egg

gridslice-1.0.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file gridslice-1.0.0.tar.gz.

File metadata

  • Download URL: gridslice-1.0.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

File hashes

Hashes for gridslice-1.0.0.tar.gz
Algorithm Hash digest
SHA256 43d311badda34566b1bcaa3e0cfcc490f8092cc33847128515968eaee9039592
MD5 f2b045123c2ee2f38fd1a820a90bb7d3
BLAKE2b-256 7269ffafc6890497d4c2a9651d000131f704e9d0b75ed151cc6fbe0481e856a4

See more details on using hashes here.

File details

Details for the file gridslice-1.0.0-py3.6.egg.

File metadata

  • Download URL: gridslice-1.0.0-py3.6.egg
  • Upload date:
  • Size: 3.6 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

File hashes

Hashes for gridslice-1.0.0-py3.6.egg
Algorithm Hash digest
SHA256 575895fc5559255fd27d715f2d6a7b8e978f4ac02548e2e6958bfdb8f734874d
MD5 4bf907ad7c85c4540a48366ff0fb9bf2
BLAKE2b-256 431ff089f98be4107a6b34178259d5d01d45b960ac8a7a63335c20f1871b6750

See more details on using hashes here.

File details

Details for the file gridslice-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: gridslice-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

File hashes

Hashes for gridslice-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f5a9462361858bc3f4d51367e1011e8fffcbfc26832cc02fb879a99802eee0b
MD5 62d930d93daf2f1569a895992623ac5a
BLAKE2b-256 3749c300f2608920cd3ed08c6baefb0020cbeb61df39fc5f60f0b082fb3ed531

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