Recently the engineers at Instagram challenged the interwebs to write some code that unshreds a chopped up image. Some of us took the liberty of solving the problem in Javascript, although it wasn’t one of the languages suggested.
Be sure to check and compare all. Personally I like Joe Lambert’s solution most.