by Jay (God) (2 Submissions)
Category: Graphics
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating:
(3 Votes)
I've noticed a lot of "Pic2HTML" programs lately that will turn an image file into an ASCII image of similar colors. While this is a good idea, I figured I'd spend an hour and code an algorithm that was lossless (IE: Final HTML picture is *EXACTLY* the same as the original image file). The algorithm is in the "Generate Code" button and even though it's fairly optimized, it still uses a lot of RAM and takes a while for large image files (it even has some "intelligence" to notice pixel clusters, but that didn't increase the speed: it only decreased the output size). Enjoy.
Download Lossless Pic2HTML (6 KB)