4 ms·
Then turn it back into HTML with an experiment of mine: https://github.com/andershaig/img-con https://github.com/andershaig/img-con - It takes an image, writes
by proexploit 16y ago
Then turn it back into HTML with an experiment of mine: https://github.com/andershaig/img-con https://github.com/andershaig/img-con - It takes an image, writes a span with a background-color for each pixel. Turns a 100x100 image into a 7 MB HTML file.
- elliottkember 16y agoUh - that's exactly what this script does!
- proexploit 16y agoYou're right and I should have paid more attention. I had thought you were generating just the image from a web page. Having actually worked on something similar, I can say I'm very very impressed with the load time.
- elliottkember 16y agoProbably mostly the Gzip - the code is very repetitive. The RLE helps too.