# bmptopnm(1) - man - phpMan

[bmptopnm(1)](https://www.chedong.com/phpMan.php/man/bmptopnm/1/markdown)                            General Commands Manual                           [bmptopnm(1)](https://www.chedong.com/phpMan.php/man/bmptopnm/1/markdown)



## NAME
       bmptopnm - convert a BMP file into a portable anymap


## SYNOPSIS
       **bmptopnm** [_bmpfile_]


## DESCRIPTION
       Reads  a  Microsoft  Windows or OS/2 BMP file as input.  Produces a PBM, PGM, or PNM image as
       output.  If the input is colormapped and contains only black and white, the  output  is  PBM.
       If  the input is colormapped and contains only black white and gray, the output is PGM.  Oth‐
       erwise, the output is PPM.

       This program cannot convert BMP files with compressed (run length encoded)  image  data.   It
       recognizes the compression and issues an error message.

       This program cannot convert BMP files with 16 bits per pixel (only because the author did not
       have a complete specification for them).  It recognizes the format and issues an  error  mes‐
       sage.


## SEE ALSO
       [**ppmtobmp**(1)](https://www.chedong.com/phpMan.php/man/ppmtobmp/1/markdown), [**ppmtowinicon**(1)](https://www.chedong.com/phpMan.php/man/ppmtowinicon/1/markdown), [**ppm**(5)](https://www.chedong.com/phpMan.php/man/ppm/5/markdown)


## AUTHOR
       Copyright (C) 1992 by David W. Sanderson.



                                          17 February 2002                               [bmptopnm(1)](https://www.chedong.com/phpMan.php/man/bmptopnm/1/markdown)
