pbmtoescp2

converts PBM bitmaps to Epson ESC/P2 printer format

TLDR

Convert PBM to Epson ESC/P2 format
$ pbmtoescp2 [input.pbm] > [output.escp2]
Specify resolution
$ pbmtoescp2 -resolution [360] [input.pbm] > [output.escp2]

SYNOPSIS

pbmtoescp2 [options] [file]

DESCRIPTION

pbmtoescp2 converts PBM bitmaps to Epson ESC/P2 printer format. ESC/P2 is used by modern inkjet printers. Part of Netpbm toolkit.

PARAMETERS

-resolution n

Print resolution (180, 360, 720).
-compress
Enable compression.

INSTALL

sudo apt install netpbm
sudo dnf install netpbm
sudo pacman -S netpbm
sudo apk add netpbm
sudo zypper install netpbm
brew install netpbm
nix profile install nixpkgs#netpbm

SEE ALSO

pbmtoepson(1), pbmtolj(1)