Image2HTML:
Conversion of GIF and JPEG files to HTML tables
<TABLE>
Overview FAQ Download Use It Online
Run Image2HTML Online

For your convenience, we provide here a way to use Image2HTML without even having to download the source code.

URL of image to process:
Horizontal scaling factor:
Vertical scaling factor:
Border thickness:
Space between pixels:
Use compression
Compression tolerance: (reasonable range: 0-150)
Quantization colors (0=no quantization):
No top grid
Use CSS
Use SPACERs


What the options mean

Option name Purpose
URL of image to process The location on the Internet of the image you wish to convert to an HTML table. This should be in a standard URL format like http://www.myhost.com/dir/image.gif. This can be any standard URL (ftp, http) and any standard image (GIF, JPEG); see the FAQ for info on supported URL and image types. Note that the Image2HTML program running on this server must be able to access this URL, so if it's behind your firewall, it won't work.
Horizontal scaling factor This controls the width of the resulting table. A value of 1 will table image exactly the same width as the original image. A value of 2 will make the table image twice as wide as the original image, and so on.
Vertical scaling factor This controls the height of the resulting table. A value of 1 will table image exactly the same height as the original image. A value of 2 will make the table image twice as tall as the original image, and so on.
Border thickness This controls the value of the BORDER= field in the HTML <TABLE> tag. A value of 0 means there will be no border; higher values result in border lines between pixels, and in larger border lines around the entire table image.
Space between pixels This controls the value of the CELLSPACING= field in the HTML <TABLE> tag. A value of 0 means that there will be no space between pixels; a value of 1 means there will be once pixel between adjacent pixels in the image table, and so on.
Use compression When this is unchecked, every pixel in the original image will be converted to a separate table cell in the table image. For most images, this is highly inefficient. When this is checked, adjacent pixels of the same color will be grouped to form larger table cells. See the FAQ for more information on compression.

Compression tolerance This controls how close pixels have to be in color, to be included in the same block of solid color. A value of 0 will create the original image perfectly; higher values will cause more and more deviation from the original image, with more and more noticeable blocky artifacts. However, higher values will also result in smaller HTML.
Quantization colors This specifies whether image quantization (reduction of number of colors in the palette) will occur, and how much. A value of 0 means no quantization, so the HTML image colors will exactly match the original colors. Any other value specifies the number of colors in the final palette to use; for instance a value of 100 means to use only 100 colors in the final palette. The colors are chosen to be those which give the closest approximation of the original image. Choosing a lower number of colors reduces the size of the CSS section, so it can reduce the size of the HTML, when used together with CSS. This option has no benefit when used without CSS (and in fact, hurts the color fidelity without reducing image size). This option may interact badly with tolerance > 0, because that will cause colors to be averaged in the final image, which will result in many intermediate colors between the palette colors selected, negating some of the value of the color reduction; nevertheless, combining the two can yield further HTML size reductions in some cases.
No top grid When this is unchecked, Image2HTML will insert an empty grid row at the top of the table whose purpose is to ensure that table cell widths are exactly aligned. This empty row is not always necessary, and takes up quite a bit of space for some images. When this is unchecked, the top grid row will not appear, saving space but possibly resulting in some stretched pixels.
Use CSS When this is checked, Image2HTML generates a CSS style sheet, followed by an HTML table. When it is unchecked, Image2HTML generates only an HTML table, with all attributes included directly in the table. CSS is usually smaller, but can be larger in some cases, especially for images with many different colors (e.g., photographs); and it may not work on older browsers.
Use SPACERs When this is checked, Image2HTML generates SPACER tags to fill each cell. This almost doubles the size of the resulting code, but is required to render properly on some older browsers.

Image2HTML was created and is brought to you by Greg Ferrar and Ken Brownfield