Linux Commands Examples

A great documentation place for Linux commands

bmptopnm

convert a BMP file into a portable anymap


see also : ppmtobmp - ppmtowinicon

Synopsis

bmptopnm [bmpfile]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

0
source
            
make || return 1
make DESTDIR=$pkgdir install || return 1
rm $pkgdir/usr/bin/bmptopnm ||return 1
}
0
source
            
./scr2img Screenshot $OUTPUTFILE.png
else
echo "Saving Screenshot to $OUTPUTFILE.png..."
bmptopnm Screenshot 2>/dev/null|pnmtopng - >$OUTPUTFILE.png 2>/dev/null
0
source
            
MF_PATH_INCLUDE TIFFTOPNM tifftopnm
MF_PATH_INCLUDE BMPTOPPM bmptopnm bmptoppm
MF_PATH_INCLUDE RASTTOPNM rasttopnm

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. Otherwise, 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 message.


see also

ppmtobmp , ppmtowinicon , ppm


author

Copyright (C) 1992 by David W. Sanderson.

How can this site be more helpful to YOU ?


give  feedback