Giter VIP home page Giter VIP logo

python-cropper-tk's Introduction

What is it

This is a copy of Greg Lavino's awesome photo_splitter.py, with some minor adjustments by myself.

Greg published his original code in a ubunutuforums.org thread.

photo_splitter.py is very useful if you need to crop a large amount of images very quickly. Simply select the areas in the image that you want to crop, click "Go" and photo_splitter will create one image file for each crop area for you, in the same folder as the original image.

Here's a screenshot from the StackOverflow question which features photo_splitter.py as the solution:

http://i.stack.imgur.com/CS2io.png

CropperTktoPDF

https://raw.githubusercontent.com/zvezdochiot/python-cropper-tk/master/croppertktopdf-sample.jpg

Installation

Before you can run photo_splitter.py, you'll need to install these libraries:

sudo apt-get install python-tk python-imaging python-imaging-tk python-reportlab

Run

An example:

./croppertk.py dog.jpg

or:

./croppertk.py

Make a for loop to process a bunch of images:

for img in ~/images/*; do ./croppertk.py $img; done

python-cropper-tk's People

Contributors

notha99y avatar zvezdochiot avatar

Stargazers

 avatar

Watchers

 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.