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

bmptopnm — Convert a BMP file into a PBM, PGM, or PNM image. More information: <https://netpbm.sourceforge.net/

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

Problem

How to use the bmptopnm command: Convert a BMP file into a PBM, PGM, or PNM image. More information: <https://netpbm.sourceforge.net/doc/bmptopnm.html>.

Solution

bmptopnm — Convert a BMP file into a PBM, PGM, or PNM image. More information: <https://netpbm.sourceforge.net/doc/bmptopnm.html>.

Generate the PBM, PGM, or PNM image as output, for Windows or OS/2 BMP file as input:
bmptopnm {{path/to/file.bmp}}


Report contents of the BMP header to stderr:
bmptopnm {{[-verb|-verbose]}} {{path/to/file.bmp}}


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

Code Snippets

Generate the PBM, PGM, or PNM image as output, for Windows or OS/2 BMP file as input

bmptopnm {{path/to/file.bmp}}

Report contents of the BMP header to `stderr`

bmptopnm {{[-verb|-verbose]}} {{path/to/file.bmp}}

Display version

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

Context

tldr-pages: common/bmptopnm

Revisions (0)

No revisions yet.