HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

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

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandescconvertclipbmtoescp2imageprinterpbm

Problem

How to use the pbmtoescp2 command: Convert a PBM image to a ESC/P2 printer file. See also: pbmtoepson, escp2topbm. More information: <https://netpbm.sourceforge.net/doc/pbmtoescp2.html>.

Solution

pbmtoescp2 — Convert a PBM image to a ESC/P2 printer file. See also: pbmtoepson, escp2topbm. More information: <https://netpbm.sourceforge.net/doc/pbmtoescp2.html>.

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}}

Code Snippets

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}}

Context

tldr-pages: common/pbmtoescp2

Revisions (0)

No revisions yet.