bmptoppm
Convert BMP images to PPM format
TLDR
Convert a BMP image to PPM format
$ bmptoppm [image.bmp] > [output.ppm]
Convert from stdin$ cat [image.bmp] | bmptoppm > [output.ppm]
Convert BMP to JPEG via pipe$ bmptoppm [image.bmp] | pnmtojpeg > [output.jpg]
SYNOPSIS
bmptoppm [bmpfile]
DESCRIPTION
bmptoppm reads a Microsoft Windows or OS/2 BMP file as input and produces a PPM (Portable PixMap) color image as output. This is part of the Netpbm package.
This command is largely superseded by bmptopnm, which automatically determines the appropriate output format (PBM, PGM, or PPM) based on the input image characteristics.
Input can be from a file or standard input; output is to standard output.
CAVEATS
For grayscale BMP images, consider using bmptopnm instead, which will produce more appropriate PGM output. This command always outputs PPM regardless of the input color depth.
