blob: 82d53c238629ed646866924c82336016b49c344c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD><TITLE>Pamtohtmltbl User Manual</TITLE></HEAD>
<BODY>
<H1>pamtohtmltbl</H1>
Updated: 13 October 2008
<BR>
<A HREF="#index">Table Of Contents</A>
<H2>NAME</H2>
pamtohtmltbl - convert pnm/pam visual image to an HTML table
<H2 id="synopsis">SYNOPSIS</H2>
<B>pamtohtmltbl</B>
[<b>-transparent=</b><i>color</i>]
[<b>-verbose</b>]
[<I>file</I>]
<P>Minimum unique abbreviation of option is acceptable. You may use
double hyphens instead of single hyphen to denote options. You may use
white space in place of the equals sign to separate an option name
from its value.
<H2 id="description">DESCRIPTION</H2>
<p>This program is part of <a href="index.html">Netpbm</a>.
<P><b>pamtohtmltbl</b> converts a visual image to an HTML table with one
cell per pixel. The cell is empty, but its background color is that of the
pixel.
<P><i>file</i> is a PBM, PGM, PPM, or PAM file. If PAM, it must be
a standard visual image of tuple type RGB, GRAYSCALE, or BLACKANDWHITE, or
something equivalent with extra higher numbered channels, but
<b>pamtohtmltbl</b> doesn't check the tuple type; it just assumes.
<P>Note that the more normal way to include a visual image in an HTML
document is with a <IMG> tag.
<p>Not all web browsers render tables as <b>pamtohtmltbl</b> expects,
and therefore show a grossly distorted image. Internet Explorer 7 on
Windows and Opera 9.02 on Windows have been seen to work; Firefox
2.0.0.16 on the same Windows system has been seen not to.
<H2 id="options">OPTIONS</H2>
<DL COMPACT>
<DT><B>-transparent=</B><i>color</i>
<DD>
This option indicates that pixels of the specified color are to be transparent
in the HTML table. The table cell for a pixel of this color will have no
background color specified.
<P>Specify the color (<i>color</i>) as described for the <a
href="libppm.html#colorname">argument of the <b>ppm_parsecolor()</b>
library routine</a>.
<DT><B>-verbose</b>
<dd>This option causes <b>pamtohtmltbl</b> to display messages about the
conversion process.
<H2 id="seealso">SEE ALSO</H2>
<B><A HREF="pnm.html">pnm</A></B>
<B><A HREF="pam.html">pam</A></B>
<H2 id="history">HISTORY</H2>
<P><b>pamtohtmltbl</b> was new in Netpbm 10.15 (April 2003).
</DL>
<H2 id="authors">AUTHORS</H2>
<p>Alexander B. Ivanov (SSH) wrote a program he called
<b>pnm2html</b>. Bryan Henderson adapted it to use the Netpbm
libraries and handle PAM images and follow Netpbm conventions, and
named it <b>pamtohtmltbl</b>.
<HR>
<H2 id="index">Table Of Contents</H2>
<UL>
<LI><A HREF="#synopsis">SYNOPSIS</A>
<LI><A HREF="#description">DESCRIPTION</A>
<LI><A HREF="#options">OPTIONS</A>
<LI><A HREF="#seealso">SEE ALSO</A>
<LI><A HREF="#authors">AUTHORS</A>
</UL>
</BODY>
</HTML>
|