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

macptopbm — Read a MacPaint file as input and produce a PBM image as output. See also: `pbmtomacp`. More informa

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

Problem

How to use the macptopbm command: Read a MacPaint file as input and produce a PBM image as output. See also: pbmtomacp. More information: <https://netpbm.sourceforge.net/doc/macptopbm.html>.

Solution

macptopbm — Read a MacPaint file as input and produce a PBM image as output. See also: pbmtomacp. More information: <https://netpbm.sourceforge.net/doc/macptopbm.html>.

Convert a MacPaint file into a PGM image:
macptopbm {{path/to/file.macp}} > {{path/to/output.pbm}}


Skip over n bytes when reading the file:
macptopbm {{[-e|-extraskip]}} {{n}} > {{path/to/output.pbm}}


Suppress all informational messages:
macptopbm {{[-q|-quiet]}} > {{path/to/output.pbm}}


Display version:
macptopbm {{[-v|-version]}}

Code Snippets

Convert a MacPaint file into a PGM image

macptopbm {{path/to/file.macp}} > {{path/to/output.pbm}}

Skip over `n` bytes when reading the file

macptopbm {{[-e|-extraskip]}} {{n}} > {{path/to/output.pbm}}

Suppress all informational messages

macptopbm {{[-q|-quiet]}} > {{path/to/output.pbm}}

Display version

macptopbm {{[-v|-version]}}

Context

tldr-pages: common/macptopbm

Revisions (0)

No revisions yet.