Try convert [man] from ImageMagick package. $ man convert "convert -append" merges files vertically. Using a combination of -rotate and -append you should be able to combine all sorts of pieces. Dunno about memory requirements though!!!
- farazs -- http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

