Debian Codegraph @

userguide/bmptopnm.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.3//EN">
2 <html><head><title>Bmptopnm User Manual</title></head>
3 <body>
4 <h1>bmptopnm</h1>
5 Updated: 05 December 2018
6 <br>
7 <a href="#index">Table Of Contents</a>
8
9 <h2>NAME</h2>
10 bmptopnm - convert a BMP file into a PBM, PGM, or PNM image
11
12 <h2 id="synopsis">SYNOPSIS</h2>
13
14 <b>bmptopnm</b>
15
16 [<b>-verbose</b>]
17
18 [<i>bmpfile</i>]
19
20 <h2 id="description">DESCRIPTION</h2>
21
22 <p>This program is part of <a href="index.html">Netpbm</a>.
23
24 <p><b>bmptopnm</b> reads a Microsoft Windows or OS/2 BMP file as input and
25 produces a PBM, PGM, or PNM image as output. If the input is colormapped and
26 contains only black and white, the output is PBM. If the input is colormapped
27 and contains only black white and gray, the output is PGM. Otherwise, the
28 output is PPM.
29
30 <p><b>bmptopnm</b> understands BMP files compressed with run length
31 encoding (RLE4/RLE8), but not if that encoding includes a "delta"
32 (which is rare). <b>bmptopnm</b> recognizes the delta and issues an
33 error message.
34
35 <p>Before Netpbm 10.75 (June 2016), <b>bmptopnm</b> could not convert
36 Version 4 or Version 5 Windows BMP images.
37
38 <p><b>bmptopnm</b> cannot convert BMP files compressed with JPEG or PNG
39 encoding. It recognizes the compression and issues an error message. Before
40 Netpbm 10.32 (February 2006), <b>bmptopnm</b> couldn't convert RLE8 BMP files
41 either, and before Netpbm 10.85 (December 2018), it couldn't convert RLE4
42 (between 10.32 and 10.85, it would act like it recognized the format, but
43 produce garbage output).
44
45 <p>Before Netpbm 10.18 (September 2003), this program could not convert
46 BMP images with the BI_BITFIELDS format ("compression type"). It would
47 recognize the format and issue an error message.
48
49 <p><b>bmptopnm</b> cannot convert OS/2 BMP files with 16 bits per
50 pixel (only because the author did not have a complete specification
51 for them). It recognizes the format and issues an error message.
52 Before Netpbm 10.16 (June 2003), it also could not convert Windows BMP
53 files with 16 bits per pixel.
54
55
56 <h2 id="options">OPTIONS</h2>
57
58 <p>In addition to the options common to all programs based on libnetpbm
59 (most notably <b>-quiet</b>, see <a href="index.html#commonoptions">
60 Common Options</a>), <b>bmptopnm</b> recognizes the following
61 command line option:
62
63 <dl compact>
64
65 <dt><b>-verbose</b>
66 <dd>Report contents of the BMP header to the standard error.
67
68 </dl>
69
70 <h2 id="seealso">SEE ALSO</h2>
71
72 <b><a href="ppmtobmp.html">ppmtobmp</a></b>,
73 <b><a href="ppmtowinicon.html">ppmtowinicon</a></b>,
74 <b><a href="ppm.html">ppm</a></b>
75
76 <h2 id="author">AUTHOR</h2>
77
78 Copyright (C) 1992 by David W. Sanderson.
79
80 <hr>
81 <h2 id="index">Table Of Contents</h2>
82 <ul>
83 <li><a href="#synopsis">SYNOPSIS</a>
84 <li><a href="#description">DESCRIPTION</a>
85 <li><a href="#options">OPTIONS</a>
86 <li><a href="#seealso">SEE ALSO</a>
87 <li><a href="#author">AUTHOR</a>
88 </ul>
89 </body>
90 </html>