ppmtobmp
Convert a PPM image to a BMP file. tldr-pages
On several platforms
Several platforms
Convert a PPM image to a BMP file
ppmtobmp path/to/file.ppm >path/to/file.bmpIdentifyExplicitly specify whether or not a Windows BMP file or an OS/2 BMP file should be created
ppmtobmp -windows path/to/file.ppm >path/to/file.bmpIdentifyUse a specific number of bits for each pixel
ppmtobmp -bbp 1 path/to/file.ppm >path/to/file.bmpIdentify