This program is part of Netpbm.
pnmtile reads a PNM image as input. Replicates it to fill an area of the specified dimensions and produces an image in the same format as output.
You can do pretty much the reverse with pamdice.
You can explicitly concatenate an image to itself (or anything else) with pnmcat.
If you're trying to tile multiple images into a superimage (such as a thumbnail sheet), see pnmindex.