Coder Social home page Coder Social logo

aaljuhani / image_slicer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from samdobson/image_slicer

0.0 2.0 0.0 731 KB

Split images into tiles. Join the tiles back together.

Home Page: http://samdobson.github.io/image_slicer

License: MIT License

Python 100.00%

image_slicer's Introduction

image

image

image

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.7+
  • 3.4+

Usage

Slice an image with Python:

>>> import image_slicer
>>> image_slicer.slice('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.

About

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

image_slicer's People

Contributors

samdobson avatar landergate avatar

Watchers

James Cloos avatar Asmaa Aljuhani avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.