pbmtoescp2(1) on Linux
The text 77cdf5500648, as Debian 13 (Trixie), Debian 12 (Bookworm) shipped it.
convert a PBM image to a ESC/P2 printer file
Flags it lists
-
-compress -
-formfeed -
-raw -
-resolution -
-stripeheight