pbmtoxbm

Convert a PBM image to a X11 or X10 bitmap. More information: https://netpbm.sourceforge.net/doc/pbmtoxbm.html.

pbmtoxbm path/to/input_file.pbm > path/to/output_file.xbm

pbmtoxbm -x11|x10 path/to/input_file.pbm > path/to/output_file.xbm