Convert a PBM image to a ESC/P2 printer file. See also: pbmtoescp2. More information: https://netpbm.sourceforge.net/doc/escp2topbm.html.
pbmtoescp2
escp2topbm path/to/image.escp2 > path/to/output.pbm