Image Slicer

Split images into tiles. Join the tiles back together.

read the docs | download the source | fork the repo

    $ pip install 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 equally-sized quadrilaterals... this package is for you!

How do I use it?

Slice images from your Python code:

    import image_slicer
    img = 'cake.jpg'
    num_tiles = 36
    tiles = image_slicer.split_image(img, num_tiles)
    image_slicer.save_tiles(tiles)

... or from the command line:

    $ slice-image cake.jpg 36

More examples?