ppmtobmpSection: User Commands (1)
Updated: 13 June 2000
Index | Return to Main Contents
NAMEppmtobmp - convert a portable pixmap into a BMP file
SYNOPSISppmtobmp [-windows] [-os2] [-bpp=bits_per_pixel] [ppmfile]
DESCRIPTIONReads a portable pixmap as input. Produces a Microsoft Windows or OS/2 BMP file as output.
All options can be abbreviated to their shortest unique prefix and you can use a double dash in place of the single dash, GNU-style.
- Tells the program to produce a Microsoft Windows BMP file. (This is the default.)
- Tells the program to produce an OS/2 BMP file. (Before August 2000, this was the default).
This determines how many bits per pixel you want the BMP file to contain.
Only 1, 4, 8, and 24 are possible. By default,
chooses the smallest number with which it can represent all the colors
in the input image. If you specify a number too small to represent all
the colors in the input image,
tells you and terminates. You can use
to reduce the number of colors in the image.
NOTESTo get a faithful reproduction of the input image, the maxval of the input image must be 255. If it is something else, ppmtobmp the colors in the BMP file may be slightly different from the colors in the input.
Windows icons are not BMP files. Use ppmtowinicon to create those.
SEE ALSObmptoppm(1), ppmtowinicon(1), ppmquant(1), ppmdither(1), ppm(5)
AUTHORCopyright (C) 1992 by David W. Sanderson.
Return to Main Contents