Wednesday, 26 March 2008

Montage

I spent a long time trying to work out the best approach to recombining image tiles (such as maps, etc.). I've finally found a neat solution.

Install the ImageMagick suite of command-line graphics programs (easily done though Synaptic on Ubuntu).

The command is:

montage -geometry +0+0 -tile 10x10 tile*.gif complete.gif

Where -geometry +0+0 sets zero borders on each tile, -tile 10x10 sets a ten by ten montage layout, tile*.gif lists the collection of gif files (named in horizontal then vertical order), and complete.gif is the name of the final image.

Larger collections may have to be done in stages to stop the command from overloading the system. It can be done in a series of stripes for example.

0 comments:

iantheteacher

Planet ILUG