Cut images into tiles and reassemble them..
Project description
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 perfectly equal squares, this module is for you!
Installation
$ pip install image_slicer
Compatible with:
Python >=2.7
Python >=3.2
Usage
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
Further examples can be found in the documentation.
About
This module was developed for collabart, a web application to help you launch a collaborative art project.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
image_slicer-0.0.1.tar.gz
(87.4 kB
view details)
File details
Details for the file image_slicer-0.0.1.tar.gz.
File metadata
- Download URL: image_slicer-0.0.1.tar.gz
- Upload date:
- Size: 87.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5f0dda1dc6057e77f899b5be99e500f5c53c556ff667563d4a0e2cf1cdeb80f
|
|
| MD5 |
3c7c3ac2b9fd3e431d16d921e5f375f2
|
|
| BLAKE2b-256 |
994f48daa5cdf851e21c65cf8fa538a933c93745276082d5dd272bf3aa1369a7
|