LinuxCommandLibrary

bmptopnm

Convert a BMP file into a PBM, PGM, or PNM image.

TLDR

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

$ bmptopnm [path/to/file.bmp]
copy


Report contents of the BMP header to stderr
$ bmptopnm -verbose [path/to/file.bmp]
copy


Display version
$ bmptopnm -version
copy

Copied to clipboard