Convert a BMP file into a PBM, PGM, or PNM image. More information: https://netpbm.sourceforge.net/doc/bmptopnm.html.
bmptopnm path/to/file.bmp
stderr
bmptopnm -verbose path/to/file.bmp
bmptopnm -version