Replicate an image to fill a specified area. More information: https://netpbm.sourceforge.net/doc/pnmtile.html.
pnmtile width height path/to/input.pnm > path/to/output.pnm