pbmtoescp2
Convert a PBM image to an ESC/P2 printer file. tldr-pages
On several platforms
Several platforms
Convert a PBM image to an ESC/P2 printer file
pbmtoescp2 path/to/image.pbm >path/to/output.escp2IdentifySpecify the compression of the output
pbmtoescp2 -compression 0 path/to/image.pbm >path/to/output.escp2IdentifySpecify the horizontal and vertical resolution of the output in dots per inch
pbmtoescp2 -resolution 180 path/to/image.pbm >path/to/output.escp2IdentifyPlace a formfeed command at the end of the output
pbmtoescp2 -formfeed path/to/image.pbm >path/to/output.escp2Identify