Cut images into tiles and reassemble them..
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 perfectly equal squares, this module is for you!
$ pip install image_slicer
- Python >=2.7
- Python >=3.2
Slice an image with Python:
>>> import image_slicer >>> file = 'fish.jpg' >>> num_tiles = 36 >>> tiles = image_slicer.split_image(file, num_tiles) >>> image_slicer.save_tiles(tiles)
… or from the command line:
$ slice-image fish.jpg 36
This module was developed for collabart, a web application to help you launch a collaborative art project.