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

pbmtomda — Convert a PBM image to a Microdesign MDA file. See also: `mdatopbm`. More information: <https://netp

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

Problem

How to use the pbmtomda command: Convert a PBM image to a Microdesign MDA file. See also: mdatopbm. More information: <https://netpbm.sourceforge.net/doc/pbmtomda.html>.

Solution

pbmtomda — Convert a PBM image to a Microdesign MDA file. See also: mdatopbm. More information: <https://netpbm.sourceforge.net/doc/pbmtomda.html>.

Convert a PBM image to a MDA file:
pbmtomda {{path/to/image.pbm}} > {{path/to/output.mda}}


Invert the colors in the input image:
pbmtomda -i {{path/to/image.pbm}} > {{path/to/output.mda}}


Halve the input image's height:
pbmtomda -d {{path/to/image.pbm}} > {{path/to/output.mda}}

Code Snippets

Convert a PBM image to a MDA file

pbmtomda {{path/to/image.pbm}} > {{path/to/output.mda}}

Invert the colors in the input image

pbmtomda -i {{path/to/image.pbm}} > {{path/to/output.mda}}

Halve the input image's height

pbmtomda -d {{path/to/image.pbm}} > {{path/to/output.mda}}

Context

tldr-pages: common/pbmtomda

Revisions (0)

No revisions yet.