8000 GitHub - rocfig/image_slicer: Split images into tiles. Join the tiles back together.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

rocfig/image_slicer

 
 

Repository files navigation

https://badge.fury.io/py/image_slicer.png Downloads https://secure.travis-ci.org/samdobson/image_slicer.png https://coveralls.io/repos/samdobson/image_slicer/badge.png

documentation | website

Image Slicer

What does it do?

Splits an image into n equally-sized tiles. Also capable of joining the pieces back together.

Whether you are planning a collaborative art project, creating a jigsaw puzzle, or simply get a kick out of dividing images into identical quadrilaterals... this package is for you!

Installation

$ pip install image_slicer

Python versions supported:

  • 2.6+
  • 3.2+

Usage

Slice an image with Python:

>>> import image_slicer
>>> image_slicer.split_image('cake.jpg', 4)
(<Tile #1 - cake_01_01.png>, <Tile #2 - cake_01_02.png>, <Tile #3 - cake_02_01.png>, <Tile #4 - cake_02_02.png>)

... or from the command line:

$ slice-image cake.jpg 36

Further examples can be found in the documentation.

Used by

About

This module was developed for collabart, a web application for launching collaborative art projects.

About

Split images into tiles. Join the tiles back together.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%
0