Introduction
Commuter 2 is the current actively developed (relatively speaking) version of the Commuter photo mosaic generation programme. Commuter 2 is the result of combining a laptop with frequent train journeys. The main differences between the two versions are:
- Commuter 2 links directly into the ImageMagick libraries and so avoids all of that nasty parsing of the output from the convert tool
- Separated album management and mosaic generation tools
- JPEG output only
- More duplication control options
- Improved, but unfortunately incompatible album format
- UNIXen only (use Commuter 1 for Windows)
As always, Commuter 2 is released under the BSD licence, share and enjoy.
Installing
Pre-requisites
You will need:
- ImageMagick
- OpenSSL - I use the hashing routines
- Libjpeg - Almost certainly a dependency of ImageMagick anyway
Building Commuter
Grab Commuter 2.2 and then:
tar xf commuter-2_2.tar
cd commuter-2_2
make
make install
Existing user? Don't forget to read the Changelog.
You may need to be root for the last stage since by default Commuter will install into /usr/local/bin/. You can change the installation path by editing Makefile. If you get build errors, check the list of known problems and fixes in the INSTALL file. If none of that helps feel free to let me know. If you get different build errors and fix them, definitely let me know.
How to use
Albums
An album ('library' in Commuter 1 speak) is a collection of images which Commuter uses as tiles. An album needs to be created before any mosaics can be made. Unlike Commuter 1 an album is a single file rather than a directory of lots of files.
Albums are managed by the comalb tool. The general format is comalb switches command paths
In reverse order; paths are one or more paths to add to the album. A path can either be a directory to process recursively or an individual file. comalb will import any image format understood by ImageMagick (with the exception of .txt files, because that's just silly).
The command is either add or create. Simply, add will add the paths to an existing album, create will create a new album, overwriting any old one.
The available switches are:
So a typical album creation may be: comalb -n "Photos" -x 40 -y 40 create ~/photos
Creating a mosaic
Mosaics are created with: commuter switches input_image
The input image can be in any format understood by ImageMagick. The switches are as follows:
A complete example: commuter -a holiday.calb -t 5000 -d -p tolerance -o out.jpg bob.jpg
