Coder Social home page Coder Social logo

shellgame-image-sorter's Introduction

Shell Game Image Sorter

This is a small program for manually arranging images in a specific order. After the images have been sorted as desired, the program can export the order by prepending the file names with numbers. Thus, the Shell Game Image Sorter allows using custom orders of images in programs that would otherwise only support alphabetical order.

The Shell Game Image Sorter is written in Python2 on top of the PyQt library. It runs (should run) on any platform supported by both Python and PyQt, including Linux, Windows, and Mac OS X.

Screenshot

Screenshot of the Shell Game Image Sorter.

Installation

  • Download and install version 2.x of the Python programming language.
  • Download and install the PyQt4 libraries.
  • Download and extract, or checkout the contents of this repository.
  • Compile the user interface description into a Python class by running the command python2-pyuic4 shellgamesorter.ui > shellgamesorter_ui.py in the directory containing shellgamesorter.ui.

Usage

  • Start the program by running the shellgamesorter.py script with the Python 2.x interpreter. On Linux, the command is python2 shellgamesorter.py.

  • Open the directory containing the images you want to sort. For example, consider a directory that contains the following files:

    1. chickenshellgame.jpg
    2. shell_game.jpg
    3. shellgame.jpg

    The program window will show thumbnails for all images in the directory, sorted by name.

    Program window after opening the example directory.

  • Sort the images using drag and drop. Dropping an image A onto another image B moves A before B in the list. Dropping an image past the end of the list moves it to the end of the list.

    Program window while dragging an image in the example directory.

    Program window after dropping an image in the example directory.

  • Select Apply order in the File menu to export the ordering. The program will ask you to select a target directory. All files will be copied to that directory. The name of the copy will start with a prefix such that the alphabetical order equals the current order in the program. In our example, the target directory will contain the files:

    1. 0@shell_game.jpg
    2. [email protected]
    3. [email protected]

    Using the Save order and Load order commands in the File menu, you can also save the current state into a file and restore it later.

License

Copyright (c) 2011--2012 Peter Dinges. The Shell Game Image Sorter is available under the open-source MIT License.

shellgame-image-sorter's People

Contributors

pdinges avatar

Stargazers

T.H. Tang 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.