This program is part of Netpbm.
ppmtopuzz reads a PPM image as input and produces an X11 "puzzle" file as output. A "puzzle" file is for use with the puzzle program included with the X11 distribution. puzzle's -picture option lets you specify an image file.