pixeltable is a python script that takes an image file and encodes it as an HTML table of one-pixel-sized cells. Each individual cell has a bgcolor attribute that replicates the color of the corresponding pixel.
python pixeltable.py [path]/[name].jpg will create [path]/[name].html; a properly formatted HTML file that replicates the image with CSS and an HTML table. This should only be used for small images (100x100 at the biggest).
image width | image height | .JPG file size | .HTML file size |
50 pixels | 20 pixels | 4.9 kB | 46.9 kB |
100 pixels | 40 pixels | 6.8 kB | 185.3 kB |
400 pixels | 245 pixels | 52.7 kB | 4.5 MB |
Made by John Atkinson
http://discountgeni.us
@discountgenius