commands.sh

pbmtoescp2

all

Convert a PBM image to a ESC/P2 printer file. See also: `pbmtoepson`, `escp2topbm`.

More info →

Options (3)

-cboolean

Specify the compression of the output

Example: pbmtoescp2 {{[-c|-compression]}} {{0|1}} {{path/to/image.pbm}} > {{path/to/output.escp2}}
boolean

Specify the horizontal and vertical resolution of the output in dots per inch

Example: pbmtoescp2 {{[-re|-resolution]}} {{180|360|720}} {{path/to/image.pbm}} > {{path/to/output.escp2}}
-fboolean

Place a formfeed command at the end of the output

Example: pbmtoescp2 {{[-f|-formfeed]}} {{path/to/image.pbm}} > {{path/to/output.escp2}}

Examples (4)

Convert a PBM image to a ESC/P2 printer file

pbmtoescp2 path/to/image.pbm > path/to/output.escp2

Specify the compression of the output

pbmtoescp2 [-c|-compression] 0|1 path/to/image.pbm > path/to/output.escp2

Specify the horizontal and vertical resolution of the output in dots per inch

pbmtoescp2 [-re|-resolution] 180|360|720 path/to/image.pbm > path/to/output.escp2

Place a formfeed command at the end of the output

pbmtoescp2 [-f|-formfeed] path/to/image.pbm > path/to/output.escp2
made by @shridhargupta | data from tldr-pages