pamtohtmltbl1
Convert pnm/pam visual image to an html table
Usage
pamtohtmltbl [-transparent=color] [-verbose] [file]
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.
Overview
This program is part of Netpbm(1) .
pamtohtmltbl 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.
file 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 pamtohtmltbl doesn't check the tuple type; it just assumes.
Note that the more normal way to include a visual image in an HTML document is with a <IMG> tag.
Not all web browsers render tables as pamtohtmltbl 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.
Options
In addition to the options common to all programs based on libnetpbm (most notably -quiet, see
Common Options ⟨index.html#commonoptions⟩ ), pamtohtmltbl recognizes the following command line options:
-
-transparent=color -
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.
Specify the color (color) as described for the argument of the
pnm_parsecolor()library routine ⟨libnetpbm_image.html#colorname⟩ .
-
-verbose -
This option causes
pamtohtmltblto display messages about the conversion process.
Document source
This manual page was generated by the Netpbm tool 'makeman' from HTML source. The master documentation is at
-
http://netpbm.sourceforge.net/doc/pamtohtmltbl.html
Releases
3 releases since Debian 12 (Bookworm); the text changed 1 time.