Skip to main content

Cut images into tiles and reassemble them..

Project description

https://badge.fury.io/py/image_slicer.png 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
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

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.

0.0.1 (07/19/2013)

  • Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
image_slicer-0.0.2.tar.gz (88.6 kB) Copy SHA256 hash SHA256 Source None Jul 22, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page